Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make weapons only do damage on a certain part or parts? [closed]

Asked by 10 years ago

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.

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?