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.