Somebody helped me get this script yesterday, and now I need it to deal 10 damage (once per time clicked) when it pops up. Try to understand? If you cant, please tell me and I'll try to explain further. Anyways, here's what I've got so far..
script.Parent.ClickDetector.MouseClick:connect(function(p)
repeat wait(1/30) until p.PlayerGui
p.PlayerGui.ScreenGui1.YouFoundACrab.Visible = true
-- I think it should go here, but not sure what..
game.Workspace.Ouch:Play()
wait(10)
p.PlayerGui.ScreenGui1.YouFoundACrab.Visible = false
end)
I'd appreciate it if you helped :3

2 comments
Does it have health, and if it does, how did you give it health? That'll tell me what you need to do to subtract the damage.
I dont really understand your question, but It's just a player, normal health.