Hello there fellow scripters. I've recently made a game that I have not published to Roblox because I cannot find out how to add damage to the tool. I currently used this local script inside the tool to load the animation

anime = script.Parent.name.Value

script.Parent.Selected:connect(function(m) m.Button1Down:connect(function() hum = game.Players.LocalPlayer.Character.Humanoid anim_feet = hum:LoadAnimation(script.Parent.Animation) current = anim_feet current:Play() end) end)

There is also an animation object in that tool where I pasted my ID. Everything works with the animation and mouse clicking, yet I don't know how to add damage to my script. I've searched for two whole days looking on different tutorials to make a damage script and nothing has worked. I've asked some friends, posted a forum, messaged a couple of creators, and now have posted this question. Does anyone know how I could make a damage script for my tools. There all R15 animation tools and everything is Peachy Keen. But without that damage script I can't release my game to the public. I have my tool, my local script, my bool value, and my animation object. Somebody please help me because I'm lost.

4 comments

0

We can help you better if you use a code block

0

I'm still new to scripting. So I don't know how to make a code block

0

Is there a damage script I could add to my current local script?

0

i know there is a way for it to dmg , maybe try a "if handle.workspace touched humanoid then humanoid.health = -10 else end " or something. im not going to code it because tbh idk how id do it ;-;