Universal Script 📌
452 Views
293 Executions
Key System

Flocos Hub

Universal Script 📌
EujogadordeRoblox
EujogadordeRoblox10K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Ola

View Raw
-- 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

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
673
855
Bumped 11 minutes ago
Universal Script 📌
816
2.8k
Bumped 12 minutes ago
Script hub
7.7k
40.2k
Bumped 16 minutes ago
Script hub
47.5k
173.4k
Bumped 56 minutes ago
Key System

Script hub

#4 this month

Verified script badgeArcane Hub | 125+ Games & 4000+ Features

Script hub
173.1k
1.5M
Bumped 2 hours ago
Key System