Universal Script – Simple gui template - Verified script for Universal Roblox
Key RequiredUniversal

Universal Script – Simple gui template

Universal ScriptPiartol4dPiartol4d 50.7K views 49 executesUpdated Jul 30, 2024
Unrated
00
Lua Script•46 lines (1435 chars)
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")

ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(128, 128, 128)  -- Grey color
Frame.Size = UDim2.new(0, 200, 0, 200)
Frame.Position = UDim2.new(0.5, -100, 0.5, -100)  -- Centered position

-- Enable dragging
local dragging
local dragInput
local dragStart
local startPos

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

Frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        dragStart = input.Position
        startPos = Frame.Position

        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

Frame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
        dragInput = input
    end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        update(input)
    end
end)

How to Execute Universal Script – Simple gui template

Step 1: Copy Code: Click the Copy Code button in the viewer above to grab the clean Lua loadstring.

Step 2: Launch Executor: Open a compatible, unpatched executor. If you need one, check our Roblox Executors Directory.

Step 3: Join Experience: Launch Roblox and join Universal Script.

Step 4: Attach & Run: Attach/inject your executor into the Roblox process, paste the code into the script tab, and press Execute.

Created By

Piartol4d
Piartol4d
Script Creator
View Author Profile

Features & Information

Execute Universal Script – Simple gui template. Key system required, created by Piartol4d, updated Jul 30, 2024. Tested and working on supported executors.

Script Changelog (1)

@Piartol4dMar 28, 2025

Create script

Community Comments (1)

Official_TeamroastkyOfficial_TeamroastkyNov 21, 2024(edited)

How To add Button?

Frequently Asked Questions

How do I execute Universal Script – Simple gui template in Roblox?

To run Universal Script – Simple gui template, copy the Lua loadstring from the code viewer above, launch Roblox and join Universal Script, attach a working executor (such as Potassium, Solara, or Delta from our Executors directory), paste the code into your executor console, and click Execute.

Is Universal Script – Simple gui template keyless or does it require an access key?

Universal Script – Simple gui template requires an access key. You can retrieve the official key directly using the Get Script Key link provided above.

Is Universal Script – Simple gui template currently safe and working?

This script is active and operational. Always test scripts using a secondary (alt) Roblox account to safeguard your main profile against anti-cheat bans.