Freeze Gui
Key RequiredUniversal

Freeze Gui

Universal ScriptNoobyNooby 14K views 710 executesUpdated Jan 11, 2025
2.8/ 5(9 votes)
5456% Positive
Lua Script•138 lines (4220 chars)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

local gui = Instance.new("ScreenGui")
local mainFrame = Instance.new("Frame")
local unanchorRoot = Instance.new("TextButton")
local unanchorAll = Instance.new("TextButton")
local anchorRoot = Instance.new("TextButton")
local anchorAll = Instance.new("TextButton")


gui.Name = "UnanchorGUI"
gui.ResetOnSpawn = false
gui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")

mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 200, 0, 180) -- Increased height for new buttons
mainFrame.Position = UDim2.new(0.5, -100, 0.1, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
mainFrame.BorderSizePixel = 2
mainFrame.Active = true
mainFrame.Draggable = false
mainFrame.Parent = gui

unanchorRoot.Name = "UnanchorRoot"
unanchorRoot.Size = UDim2.new(0.9, 0, 0.2, 0)
unanchorRoot.Position = UDim2.new(0.05, 0, 0.05, 0)
unanchorRoot.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
unanchorRoot.Text = "Unanchor Root"
unanchorRoot.TextColor3 = Color3.fromRGB(255, 255, 255)
unanchorRoot.Parent = mainFrame

unanchorAll.Name = "UnanchorAll"
unanchorAll.Size = UDim2.new(0.9, 0, 0.2, 0)
unanchorAll.Position = UDim2.new(0.05, 0, 0.3, 0)
unanchorAll.BackgroundColor3 = Color3.fromRGB(100, 255, 100)
unanchorAll.Text = "Unanchor All"
unanchorAll.TextColor3 = Color3.fromRGB(255, 255, 255)
unanchorAll.Parent = mainFrame


anchorRoot.Name = "AnchorRoot"
anchorRoot.Size = UDim2.new(0.9, 0, 0.2, 0)
anchorRoot.Position = UDim2.new(0.05, 0, 0.55, 0)
anchorRoot.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
anchorRoot.Text = "Anchor Root"
anchorRoot.TextColor3 = Color3.fromRGB(255, 255, 255)
anchorRoot.Parent = mainFrame

anchorAll.Name = "AnchorAll"
anchorAll.Size = UDim2.new(0.9, 0, 0.2, 0)
anchorAll.Position = UDim2.new(0.05, 0, 0.8, 0)
anchorAll.BackgroundColor3 = Color3.fromRGB(255, 150, 50)
anchorAll.Text = "Anchor All"
anchorAll.TextColor3 = Color3.fromRGB(255, 255, 255)
anchorAll.Parent = mainFrame

local dragging = false
local dragStart = nil
local startPos = nil

local function updateDrag(input)
    local delta = input.Position - dragStart
    mainFrame.Position = UDim2.new(
        startPos.X.Scale,
        startPos.X.Offset + delta.X,
        startPos.Y.Scale,
        startPos.Y.Offset + delta.Y
    )
end

mainFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        dragStart = input.Position
        startPos = mainFrame.Position
    end
end)

UserInputService.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
        updateDrag(input)
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = false
    end
end)


local function unanchorRootPart()
    local character = Players.LocalPlayer.Character
    if character then
        local rootPart = character:FindFirstChild("HumanoidRootPart")
        if rootPart then
            rootPart.Anchored = false
        end
    end
end

local function unanchorAllParts()
    local character = Players.LocalPlayer.Character
    if character then
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") then
                part.Anchored = false
            end
        end
    end
end

local function anchorRootPart()
    local character = Players.LocalPlayer.Character
    if character then
        local rootPart = character:FindFirstChild("HumanoidRootPart")
        if rootPart then
            rootPart.Anchored = true
        end
    end
end

local function anchorAllParts()
    local character = Players.LocalPlayer.Character
    if character then
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") then
                part.Anchored = true
            end
        end
    end
end

unanchorRoot.MouseButton1Click:Connect(unanchorRootPart)
unanchorAll.MouseButton1Click:Connect(unanchorAllParts)
anchorRoot.MouseButton1Click:Connect(anchorRootPart)
anchorAll.MouseButton1Click:Connect(anchorAllParts)

Features & Information

Freeze and unfreeze, simply there is nothing to dislike or like about it, and if you do, go fuck urself before touching those comments bitch, i dont wanna deal with another Kid @Pateuing fuck u too

Community Comments (27)

NoobyNoobyJan 11, 2025(edited)

@Pateuing i told you to leave me BE NOW SHUT THE * UP

NoobyNoobyJan 11, 2025(edited)

Plus you just looked at the code like a code stealer

NoobyNoobyJan 11, 2025(edited)

Bro ur so weird like bro that happened like 3 hours ago, you told me to leave you alone so i am RIGHT NOW

NoobyNoobyJan 11, 2025(edited)

when will ur * drop bro IK i started it but i ended it

NoobyNoobyJan 11, 2025(edited)

like @Pateuing im making this for entertainment but ur ruining it

NoobyNoobyJan 11, 2025(edited)

@Pateuing if ur really not beefing with me then shew

NoobyNoobyJan 11, 2025(edited)

plus @Pateuing i tried it and it didnt work,

NoobyNoobyJan 11, 2025(edited)

and u really think ima spend 5 seconds of my life rewriting anc*d to false

NoobyNoobyJan 11, 2025(edited)

and i really dont care just stop disliking, and even commenting on my scripts when you dont even try it

LunarScriptsLunarScriptsJan 11, 2025(edited)

Hey @Pateuing that's Called "theft" Your stealing someone's code & Not Giving Credit I suggest Leaving @Smartlightyear Alone Before He Can Sue you for Theft Maybe for around 100 $/₤ :D

NoobyNoobyJan 11, 2025(edited)

Okay thanks knew you got my back

LunarScriptsLunarScriptsJan 11, 2025(edited)

Your welcome

NoobyNoobyJan 11, 2025(edited)

@Lateuing when will u learn @LunarScripts just ignore him he's skidded inside

LunarScriptsLunarScriptsJan 11, 2025(edited)

@Pateuing I don't use ChatGPT Sure i use Gemini (or GitHub AI) for like for 5-10 Lines of code and @Smartlightyear USE to use Cody AI, @Pateuing Kinda weird You legit Have a Smoking PFP, + He's my friend I don't really care about anything he does unless he tells my Scripts & Stuff that I don't publish, @Smartlightyear over here Learned from Cody AI TO Script, @Pateuing why Don't you just leave him alone maybe? Like He Does A lot & Sure my Scripts do look like ChatGPT Gemini Or AI In general that's because when I Edit my scripts then I cant Visibly See What area I'm editing Unless i have -- <Section> -- & Its pretty Hard when trying to make these scripts so can you like Leave Us Alone? also Since you say We Use ChatGPT here's the ChatGPT Text: @Pateuing, I don’t use ChatGPT, but I do use Gemini (or GitHub AI) for small code snippets, usually around 5-10 lines. @Smartlightyear used Cody AI in the past, and honestly, I don't see why that's an issue unless he's sharing unpublished scripts or details that aren’t his to share. Yes, my scripts might look like they’re from AI tools like ChatGPT or Gemini—it's because, when editing, it’s hard to visually track changes without clear markers like -- <Section> --. It’s a tool I use to make things easier. So, if you don’t mind, please stop questioning what we do. We’re working on our projects, and it’s not your place to interfere.

FrateleFrateleJan 11, 2025(edited)

@LunarScripts because those AI's are alot different. i dont care what u use its still AI , im gonna stop arguing now cs this is pointless and yall both r stupid , learn lua

LunarScriptsLunarScriptsJan 11, 2025(edited)

@Pateuing Your. Just. a. Skid. Trying to Pretend your a Good Coder When you Most likely Use AI For everything then Remove "-- <Section> --" So you Look Legit when we all know That you don't Know how to Code :D Also you mean Lua V5.1 LuaU & GLua? I Bet you Most likely Use Solara Or JJSploit Or even better, No Executor! Just stop Commenting and Stop Skidding & Just Stop in general

LunarScriptsLunarScriptsJan 11, 2025(edited)

Also if your gonna say "How do you test scripts then??" Oh Wow Theres a DEV CONSOLE FOR YOUR GAME

lukeabennett1lukeabennett1Jan 11, 2025(edited)

wont execute might just be that im using a lower level executor

NoobyNoobyJan 14, 2025(edited)

stop fighting ur fillin my notifications

LunarScriptsLunarScriptsJan 16, 2025(edited)

@Pateuing Idc anymore, Just call us whatever you want Like I don't care if you roast me

FrateleFrateleJan 16, 2025(edited)

@LunarScripts calling me a skid lmfao for no reason look at you making ur scripts copy & pasted with AI

LunarScriptsLunarScriptsJan 17, 2025(edited)

@Pateuing I wounder why your so INVESTED into CHATGPT i wounder if you Use it

LunarScriptsLunarScriptsJan 17, 2025(edited)

infinite yield is getting patched also yes i prob do need chatgpt for english💀

FrateleFrateleJan 18, 2025(edited)

@LunarScripts infinite yield is NOT getting patched

IlovekangreburgersIlovekangreburgersJun 20, 2026

Crying in my room cause i cant move the gui😢😢

This is wizual...

KuroKoodoKuroKoodoAug 12, 2026

sorry if i disturb you, what does this script do?

More Scripts for Universal Scripts