A bunch of sword fighting games I've played have swords that will only do damage on the floor of the arena or a certain part or brick(s). I've tried to make a script in a sword that will do that but I can't figure out how. I mean a part or brick NOT a body part on a Humanoid like an arm or leg. Like the swords that I've tried putting the script into do damage off the part. I've tried : game.Workspace.Floor = Floor game.StarterKit.LinkedSword = LinkedSword function FindFirstChild:Floor then LinkedSword.Damage Humanoid == 35 -- What the Dmg is game.Workspace.Baseplate = Baseplate FindFirstChild:Baseplate then LinkedSword.Damage Humanoid == 0 --So it wont Dmg Humanoid on the Baseplate end end But that didn't work. This has prevented me from making one of my games.
COMMUNITY QUESTION
How do I make weapons only do damage on a certain part or parts?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
