while true do --if script.Parent == "PlayerGui" then plr = game.Players.LocalPlayer char = plr.Character --hum = char:WaitForChild("Humanoid") CreateAClass = plr:WaitForChild("CreateAClass")
rehum = char:FindFirstChild("Humanoid") health = rehum.Health if health >= 0 then local Lethals = CreateAClass:FindFirstChild("Lethals") local Tacticals = CreateAClass:FindFirstChild("Tacticals")
if Lethals then Lethals.Value = 2 end
if Tacticals then Tacticals.Value = 2 end
end --end
wait(.1) end
Can you fix this script please, not sure whats wrong with it.
I deciphered your post, and this is what I came out with. Is this right? And why doesn't this work? I will edit this post when you tell me.
local plr = game.Players.LocalPlayer local char = plr.Character local hum = char:WaitForChild("Humanoid") local CreateAClass = plr.PlayerGui:WaitForChild("CreateAClass") local rehum = char:FindFirstChild("Humanoid") local health = rehum.Health while true do if script.Parent == "PlayerGui" then if health >= 0 then local Lethals = CreateAClass:FindFirstChild("Lethals") local Tacticals = CreateAClass:FindFirstChild("Tacticals") if Lethals ~= nil then Lethals.Value = 2 if Tacticals ~= nil then Tacticals.Value = 2 end end end end wait(.1) end
Closed as Too Broad by Goulstem and YellowoTide
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?