Best way to make a sword?

Hello,
I am inexperienced in scripting and I have little knowledge of how my sword that I’m creating should be formatted. Here is what I was thinking: (I haven’t scripted the tool, I have only began to set it up. Also I do not yet have permission to upload images, so bear with me.)
-Remote events will be stored in a folder in ReplicatedStorage. I have one named attack, is there any others that I would need for a simple (attacking only) combat system?
-Everything else is stored under the tool, including:
-an animation folder with Idle, Equip, Swing1 and Swing2
-a values folder with a IntValue for damage and a bool value for CanAttack (not sure if any other
values are needed)
-Server script and a client local script
-qPerfectionWeld and sword model, handle including audios

Is this layout efficient for a combat system that is safe from exploiters and functions without bugs? Also, feedback would be appreciated if you spot something that is missing or unnecessary.

Thanks, toe_s :smile:

1 Like

This sounds efficient, but I have one question-
Are you using one server script in ServerScriptService or one script per tool?
I’d definitely recommend using one script over one in each tool, but that’s all I can think of.
Hope this helps :slight_smile:

2 Likes

I have one script inside of the tool, I’ll move it to ServerScriptService, thank you for the feedback!

1 Like