Universal Script – Test - Verified script for Universal Roblox
Key RequiredUniversal

Universal Script – Test

Universal Scriptfaridbashirli2015ffaridbashirli2015f 19K views 25 executesUpdated Jun 15, 2024
Unrated
00
Lua Script•148 lines (4918 chars)
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 400, 0, 500)
mainFrame.Position = UDim2.new(0.5, -200, 0.5, -250)
mainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
mainFrame.BorderSizePixel = 0
mainFrame.Parent = screenGui

local titleBar = Instance.new("Frame")
titleBar.Size = UDim2.new(1, 0, 0, 30)
titleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
titleBar.BorderSizePixel = 0
titleBar.Parent = mainFrame

local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, -30, 1, 0)
titleLabel.Position = UDim2.new(0, 10, 0, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Fling Things and People"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.TextXAlignment = Enum.TextXAlignment.Left
titleLabel.Font = Enum.Font.SourceSans
titleLabel.TextSize = 18
titleLabel.Parent = titleBar

local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 30, 1, 0)
closeButton.Position = UDim2.new(1, -30, 0, 0)
closeButton.BackgroundTransparency = 1
closeButton.Text = "X"
closeButton.TextColor3 = Color3.fromRGB(255, 0, 0)
closeButton.Font = Enum.Font.SourceSans
closeButton.TextSize = 18
closeButton.Parent = titleBar

closeButton.MouseButton1Click:Connect(function()
    screenGui:Destroy()
end)

local sideMenu = Instance.new("Frame")
sideMenu.Size = UDim2.new(0, 120, 1, -30)
sideMenu.Position = UDim2.new(0, 0, 0, 30)
sideMenu.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
sideMenu.BorderSizePixel = 0
sideMenu.Parent = mainFrame

local contentFrame = Instance.new("Frame")
contentFrame.Size = UDim2.new(1, -120, 1, -30)
contentFrame.Position = UDim2.new(0, 120, 0, 30)
contentFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
contentFrame.BorderSizePixel = 0
contentFrame.Parent = mainFrame

local scrollingFrame = Instance.new("ScrollingFrame")
scrollingFrame.Size = UDim2.new(1, 0, 1, 0)
scrollingFrame.CanvasSize = UDim2.new(0, 0, 2, 0)
scrollingFrame.ScrollBarThickness = 5
scrollingFrame.BackgroundTransparency = 1
scrollingFrame.Parent = contentFrame

local greySquare = Instance.new("Frame")
greySquare.Size = UDim2.new(0, 100, 0, 50)
greySquare.Position = UDim2.new(0.5, -50, 0.9, -25)
greySquare.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
greySquare.BorderSizePixel = 0
greySquare.Parent = mainFrame

local whiteCircle = Instance.new("Frame")
whiteCircle.Size = UDim2.new(0, 50, 0, 50)
whiteCircle.Position = UDim2.new(0, 0, 0, 0)
whiteCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
whiteCircle.BorderSizePixel = 0
whiteCircle.Parent = greySquare

local isActive = false

local function toggleState()
    isActive = not isActive
    local newPos = isActive and UDim2.new(1, -50, 0, 0) or UDim2.new(0, 0, 0, 0)
    local newColor = isActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
    
    whiteCircle:TweenPosition(newPos, Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 0.5, true)
    greySquare.BackgroundColor3 = newColor

    if isActive then
        enableCharacterControl()
    else
        disableCharacterControl()
    end
end

whiteCircle.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        toggleState()
    end
end)

local RunService = game:GetService("RunService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
local connection

function enableCharacterControl()
    connection = RunService.Stepped:Connect(function()
        if not isActive then return end

        local directions = {
            Vector3.new(1, 0, 0),
            Vector3.new(-1, 0, 0),
            Vector3.new(0, 0, 1),
            Vector3.new(0, 0, -1),
            Vector3.new(0, 1, 0),
            Vector3.new(0, -1, 0)
        }

        local maxBlocks = 0
        local maxDirection = nil

        for _, direction in ipairs(directions) do
            local raycastParams = RaycastParams.new()
            raycastParams.FilterDescendantsInstances = {character}
            raycastParams.FilterType = Enum.RaycastFilterType.Blacklist

            local raycastResult = workspace:Raycast(rootPart.Position, rootPart.Position + direction * 5, raycastParams)
            if raycastResult then
                local numBlocks = #raycastResult.Instance:GetTouchingParts()
                if numBlocks > maxBlocks then
                    maxBlocks = numBlocks
                    maxDirection = direction
                end
            end
        end

        if maxDirection then
            humanoid:Move(maxDirection * 20)
        end
    end)
end

function disableCharacterControl()
    if connection then
        connection:Disconnect()
    end
end

How to Execute Universal Script – Test

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

faridbashirli2015f
faridbashirli2015f
Script Creator
View Author Profile

Features & Information

Execute Universal Script – Test. Key system required, created by faridbashirli2015f, updated Jun 15, 2024. Tested and working on supported executors.

Script Changelog (1)

Create script

Community Comments (0)

No comments yet for this script.

Frequently Asked Questions

How do I execute Universal Script – Test in Roblox?

To run Universal Script – Test, 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 – Test keyless or does it require an access key?

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

Is Universal Script – Test 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.