Universal Script 📌
452 Views
408 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
Script hub
150
987
Bumped 38 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 56 minutes ago
Key System
Script hub
10.5k
200.7k
Bumped 1 hour ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High Quality Offering
Universal Script 📌
308
978
Bumped 5 hours ago