Kick script broken

Hey everyone, my anticheat is kicking everyone immediatley for “jumphacks”.
Script:

local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character

while true do
	wait()
	if LocalPlayer.Character.Humanoid.JumpHeight ~= 50 then
		LocalPlayer:Kick("Jumpheight hacks")
		wait(10)
	end
end```
It's in a folder, I don't know if that causes any problems.

Update: I fixed it myself. Sorry if you tried to fix it for me.