ADVERTISEMENTREMOVE ADS
Game icon

Freeze your character

a literal baseplate.
8 months ago
Script preview thumbnail
Script Preview

Description

You can freeze your character and unfreeze!

Tested with

ADVERTISEMENTREMOVE ADS
1 Lines • 1.3 KiB
Raw
local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local FreezeButton = Instance.new("TextButton") ScreenGui.Name = "FreezeGUI" ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") ScreenGui.ResetOnSpawn = false Frame.Parent = ScreenGui Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderColor3 = Color3.fromRGB(20, 20, 20) Frame.Size = UDim2.new(0, 150, 0, 40) Frame.Position = UDim2.new(0.5, -75, 0.1, 0) Frame.Active = true Frame.Draggable = true FreezeButton.Parent = Frame FreezeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) FreezeButton.BorderColor3 = Color3.fromRGB(30, 30, 30) FreezeButton.Size = UDim2.new(0.9, 0, 0.8, 0) FreezeButton.Position = UDim2.new(0.05, 0, 0.1, 0) FreezeButton.Text = "Freeze" FreezeButton.TextColor3 = Color3.fromRGB(255, 255, 255) FreezeButton.TextSize = 14 local isFrozen = false FreezeButton.MouseButton1Click:Connect(function() local character = game.Players.LocalPlayer.Character if character then local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if humanoidRootPart then isFrozen = not isFrozen humanoidRootPart.Anchored = isFrozen FreezeButton.Text = isFrozen and "Unfreeze" or "Freeze" FreezeButton.BackgroundColor3 = isFrozen and Color3.fromRGB(80, 0, 0) or Color3.fromRGB(50, 50, 50) end end end)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS