This scipt doesn’t freeze the Player and idk why
it doesn’t give any errors
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character
local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
HumanoidRootPart.Anchored = true
wait(10)
HumanoidRootPart.Anchored = false
Instead of anchoring the HumanoidRootPart, just set the players WalkSpeed to 0. I don’t think that the HumanoidRootPart can actually be anchored, as it is read-only. I was wrong about this, sorry.
This script should be working, it most likely isn’t if you’ve placed it in a local script and are testing it in studio. Make sure the HumanoidRootPart exists before anchoring it.
local player = game.Players.LocalPlayer
local Character = player.CharacterAdded
local Humanoid = Character.Humanoid
Humanoid.WalkSpeed = 0
and its in StarterGui
and now its giving me a error:
Humanoid is not a valid member of RBXScriptSignal - Client - Test:3
Stack Begin - Studio
Script 'Players.Happygamer1983.PlayerGui.Test', Line 3 - Studio - Test:3
Stack End - Studio
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
Are you sure you have no erros in your consol? Cause that Character variable there has no guarantee of it actually not instancing a nil, instead of local Character = LocalPlayer.Character, have it be local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
Just a headsup on his script, if you erase the platform the player is sitting on, they would fall cause they aren’t frozen in place, they are just unable to move.