Making a sanity check for player movement during pre-game wait time?

Hello everyone! I am trying to make a 15 second wait time before a round begins. The wait time itself works, but I want an extra layer of security and have a sanity check for player movement on the X and Z axis.


The players can jump and look around, but not move along the x and z axis. How can I ensure this?

4 Likes

You Can Try And Make A Bool Value : “InGame” In ReplicatedStorage

Then

local player = game.Players.LocalPlayer
if player.Character.WalkSpeed >= 1 and InGame.Value == true then
player:Kick()
end

Its Should Look Like This…

1 Like

Thank you! But I had solved it a while ago on my own, that is a good idea though that I may use for other parts of my game!

1 Like

No Problem!

Just Make Sure To Mark Your Post As Solved :smiley: