How does one create a simple sword tool?
- What Libraries would you use?
- How would you detect User Input?
- What should be on the Client and what should be on the Server?
I would be very glad to read every answer!
How does one create a simple sword tool?
I would be very glad to read every answer!
I never have a use for one, but I am aware that many people like to use libraries such as ShapecastHitbox for collision detection.
Use UserInputService to detect user input.
Alternatively, if you’re using a Tool instance there is also a Tool.Activated script signal.
It is best to keep things that are visually rendered on the client, such as animations and particle effects. The server should be used to inform other clients that they need to perform these effects on their own client. Additionally, the server should be used to perform any authoritative actions, such as applying damage or validating a damage input request from a player.