I’m not too sure how to make it so that when someone respawns, they freeze for about 3 seconds before allowing them to move. Could anyone possibly help me with that? Are there any YT tutorials for that? (I’ve checked but there could be ones that I could’ve missed) I’m sorry, I have barely any knowledge on scripting.
You could make it so that the game listens for when the player’s character respawns, then just set their JumpPower and WalkSpeed to 0 for 3 seconds and then set them back. Or you could anchor their humanoidrootpart but if you don’t have a spawnlocation they’ll freeze midair so i’d recommend the manual setting
Example
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local function onCharacterAdded(character)
local humanoid = character.Humanoid
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
wait(3)
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
end
onCharacterAdded(player.Character or player.CharacterAdded:Wait())
player.CharacterAdded:Connect(onCharacterAdded)
end)
2 Likes