so when i change this script over to a regular script in ServerScriptService the game will not load and the only thing that prints are inf yields on core roblox scripts it does this whenever i have a while true do loop on a serverscript all except a day/night cycle i made it seems to run fine
here is the script i am trying to convert and yes i have the player get kicked on a localscript i planned on changing that
wait(3) while true do local plr = game.Players.LocalPlayer local MaxHealth = plr:WaitForChild("MaxHealth") local First = MaxHealth:WaitForChild("First") local Second = MaxHealth:WaitForChild("Second") local Third = MaxHealth:WaitForChild("Third") local Fourth = MaxHealth:WaitForChild("Fourth") local Fifth = MaxHealth:WaitForChild("Fifth") local hum = plr.Character:WaitForChild("Humanoid") if First.Value == true then Second.Value = false Third.Value = false Fourth.Value = false Fifth.Value = false if hum.MaxHealth ~= 110 then hum.MaxHealth = 110 end end if Second.Value == true then First.Value = false Third.Value = false Fourth.Value = false Fifth.Value = false if hum.MaxHealth ~= 120 then hum.MaxHealth = 120 end end if Third.Value == true then First.Value = false Second.Value = false Fourth.Value = false Fifth.Value = false if hum.MaxHealth ~= 130 then hum.MaxHealth = 130 end end if Fourth.Value == true then First.Value = false Second.Value = false Third.Value = false Fifth.Value = false if hum.MaxHealth ~= 140 then hum.MaxHealth = 140 end end if Fifth.Value == true then First.Value = false Second.Value = false Fourth.Value = false Third.Value = false if hum.MaxHealth ~= 150 then hum.MaxHealth = 150 end end if hum.MaxHealth >= 151 then game.ReplicatedStorage.HumanoidKick:FireServer() end if hum.WalkSpeed >= 37 then game.ReplicatedStorage.HumanoidKick:FireServer() end if plr.Character.Humanoid.JumpPower >= 51 then game.ReplicatedStorage.HumanoidKick:FireServer() end if plr.Character.Humanoid.HipHeight >= 1.36 then game.ReplicatedStorage.HumanoidKick:FireServer() end if plr.Character.Humanoid.MaxSlopeAngle >= 90 then game.ReplicatedStorage.HumanoidKick:FireServer() end wait(.4) end