Trouble with swords

I would like to make a sword for my game, however, I am a little stumped on how to approach this.

I’m not exactly sure how I should do this. I have looked at the roblox sword script and most of it was just junk code that I didn’t need to use for mine.

I’m looking for examples on what I should start with. Not entire scripts, just little code snippets showing a way to do this or that and/or words explaining what I should do.

1 Like

Is there anything specifically you need help on? I’ll explain some basics though.

To deal damage to people that touch the sword, use a .Touched event on your sword, and ignore any humanoid that isn’t an enemy.

More on events: Events | Documentation - Roblox Creator Hub

2 Likes

i see, is there a way to make them take damage only once after being touched until the next swing?

Yes, you can do that via a debounce.

oh right lol i completely forgot about debounces somehow, thanks!

A simple search on YouTube could help you out. there’s many videos on this topic.

i prefer making my scripts custom without video tutorials, but thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.