local Players = game:GetService("Players") local P = Players.LocalPlayer local C = P.Character or P.CharacterAdded:Wait() local H = C:WaitForChild("Humanoid") local Hrp = C:WaitForChild("HumanoidRootPart") getgenv().Freeze = true local function Freeze() if not Hrp.Anchored then Hrp.Anchored = true end end local function Thaw() if Hrp.Anchored then Hrp.Anchored = false end end task.spawn(function() while true do if getgenv().Freeze then Freeze() else Thaw() end task.wait(0.1) end end)