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
3 years ago
local tool = script.Parent
local HP = 10000

while tool.Equipped == true do
    local hum = tool.Parent:FindFirstChild("Humanoid")
    hum.Health = hum.Health + HP
    wait()
end

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 3 years ago
  1. tool.equipped should be Tool.Activated and, The humanoid variable could be wrong.
Ad

Answer this question