Is it possible to check if someone's walkspeed has changed using just a normal script? I want to do something like this but in a normal script not local: if game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed ~= 16 then game:GetService("Players").LocalPlayer:kick() end
In my normal script so far I have: game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local Humanoid = character:WaitForChild("Humanoid") Humanoid.WalkSpeed = 100 end) end)
This works, but if i try to do a check for this it doesnt work. game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local HumanoidRootPart = character:WaitForChild("HumanoidRootPart") local Humanoid = character:WaitForChild("Humanoid") while wait() do if Humanoid.WalkSpeed ~= 16 then player:kick() end end end) end)
IDK If this is possible or not but if it is pls help lol. If its not then what would be an alternative (other than local scripts)?

2 comments
put this in code block format
also ur script should work as you've said bc it already checks for a changed walkspeed value, or you could print something when it gets detected