Tool weapon vs Model Weapon

Hello, I am new to lua coding in general and after some research I have several question

  1. what is better Tool weapon or Model weapon? are they different if so what are the pro and con of each type?

  2. Model weapon (tool less) meaning it doesn’t have Activated() and Equipped() funtion (from my understanind) like tool weapon then how are you suppose to replicate the same result?

  3. is it possible to combine the tool weapon and motor6d together and possibly animate the tool?

Screenshot_18

1 Like

The Tool instance is specifically made for things that can be used or held by players. The main benefit is that they can be equipped by the player using Roblox’s core code, and they have a dedicated folder for storage already in the Player instance: the ‘Backpack’ folder.

The parts/meshes which make up a tool can be animated.

Just use a tool; don’t use a model.

2 Likes

can tool be animated if it suppose to be pick up later and not on the starter pack

1 Like

Yes. The Tool instance has a variety of events that you can listen to in order to know when the tool is equipped, unequipped, activated, and deactivated. Connect functions which play those animations to those events.

2 Likes

Tools is what you want to start with. If you will be using Models, this will mean you will have to make your own framework that is able to track your currently equipped and stored items while also making it possible to equip, unequip items. It actually does sound harder then it is (still depends on how complex you want your system to be).

Making a custom framework can be good if you want to have different visual approaches between client and server aka how you perceive your equipped item and how players perceive your equipped item. It also is less vulnerable to general tool exploits as it most likely will use different directories then Roblox’ core tool system.

1 Like