I'm attempting to create a script so that players on a certain team get "godded". However, the script isn't working and there are no errors in output.
I added the while loop because people will be changing teams all the time.
Any help would be appreciated.
while wait() do
for i,v in next, game.Players:GetChildren() do
if v.TeamColor == "White" then
k = Workspace:FindFirstChild(v.Name,true)
if k then
k.MaxHealth = math.huge
end
end
end
end

3 comments
Try setting MaxHealth to 0. If that doesn't work, take Kohl's Admin and inspect the script.
Checked it. No errors are shown.
Inspect Kohl's. Use the find function in studio. That's Command + F on Mac, and Control + F for Windows, while looking at a script.