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

I tried to make a god mode when the player equips the tool, it did not work what do I do?

Asked by
To0_ny 141
4 years ago
1local tool = script.Parent
2local HP = 10000
3 
4while tool.Equipped == true do
5    local hum = tool.Parent:FindFirstChild("Humanoid")
6    hum.Health = hum.Health + HP
7    wait()
8end

I tried to make it so whenever the tool is equipped the player's HP just keep on increasing, I think that "tool.Equipped" part was wrong, can someone help?

1 answer

Log in to vote
0
Answered by 4 years ago
  1. tool.equipped should be Tool.Activated and, The humanoid variable could be wrong.
Ad

Answer this question