Sign in to follow this  
AkaiNight

Making switchable weapon

Recommended Posts

AkaiNight    14

First of all forgive my english it's not my main language and i'm not sure that i can explain correctly what i want.

I'm making a custom weapon which switchable with other forms it must have a main form and with hotkeys it must change another.(I hope that it's understandable) all of weapons have different textures and different abilites (sword, bow, speat, scythe) and i don't know how to make all of them in 1 .lua

i hope it is understandable 

 

Share this post


Link to post
Share on other sites
AkaiNight    14
41 minutes ago, ZupaleX said:

Do you know how to make them in different lua?

If yes does it matter so much to have them all in one file?

is it possible to make a item can switch lua files?

Share this post


Link to post
Share on other sites
ZupaleX    270

well you could just despawn the item you currently have, spawn the new one and give it to the player for instance.

It depends how much different the items are. If you try to put in one files stuffs which are very different, that might start to become very messy.

Share this post


Link to post
Share on other sites
AkaiNight    14
23 hours ago, ZupaleX said:

well you could just despawn the item you currently have, spawn the new one and give it to the player for instance.

It depends how much different the items are. If you try to put in one files stuffs which are very different, that might start to become very messy.

Well i just have  18-20 items but i can try this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this