
452 Views
293 Executions
Key System
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Ola
-- LocalScript (StarterPlayerScripts)
local Players = game:GetService("Players")
local ContextActionService = game:GetService("ContextActionService")
local player = Players.LocalPlayer
-- configurações de "descongelamento" padrão (ajuste se quiser)
local DEFAULT_WALKSPEED = 16
local DEFAULT_JUMPPOWER = 50
local function blockControls()
-- impede inputs de movimento e pulo
ContextActionService:BindAction("FreezeControls", function()
return Enum.ContextActionResult.Sink
end, false,
Enum.PlayerActions.CharacterForward,
Enum.PlayerActions.CharacterBackward,
Enum.PlayerActions.CharacterLeft,
Enum.PlayerActions.CharacterRight,
Enum.PlayerActions.Jump)
end
local function unblockControls()
pcall(function() ContextActionService:UnbindAction("FreezeControls") end)
end
local function freezeCharacter(char)
local humanoid = char and char:FindFirstChildOfClass("Humanoid")
local hrp = char and char:FindFirstChild("HumanoidRootPart")
if humanoid then
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
humanoid.PlatformStand = true -- evita animações físicas de movimento
end
if hrp then
hrp.Velocity = Vector3.new(0,0,0)
hrp.RotVelocity = Vector3.new(0,0,0)
end
blockControls()
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!








