universal settings v2
Key RequiredUniversal

universal settings v2

Universal Scriptmrusscher0mrusscher0 473 views 27 executesUpdated Nov 28, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•154 lines (4613 chars)
-- LocalScript in StarterPlayerScripts

local Player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

-- Settings
local settings = {
    Speed = 16,
    Jump = 50,
    FOV = 70,
}

-- ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CoreSettingsMenu"
screenGui.Parent = game:GetService("CoreGui")

-- Main Frame
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 300, 0, 250)
frame.Position = UDim2.new(0.5, -150, 0.5, -125)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.BackgroundTransparency = 0.5
frame.BorderSizePixel = 0
frame.Parent = screenGui
frame.ClipsDescendants = true

-- UI Stroke for liquid glass effect
local stroke = Instance.new("UIStroke")
stroke.Color = Color3.fromRGB(180, 180, 255)
stroke.Thickness = 2
stroke.Parent = frame

-- Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 30)
title.Position = UDim2.new(0, 0, 0, 0)
title.Text = "Settings Menu"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.BackgroundTransparency = 1
title.Font = Enum.Font.GothamBold
title.TextSize = 24
title.Parent = frame

-- Create TextBoxes for settings
local boxes = {}
local i = 1
for name, value in pairs(settings) do
    local label = Instance.new("TextLabel")
    label.Size = UDim2.new(0.4, 0, 0, 30)
    label.Position = UDim2.new(0, 10, 0, 30 * i + 10)
    label.Text = name..":"
    label.TextColor3 = Color3.fromRGB(255, 255, 255)
    label.BackgroundTransparency = 1
    label.Font = Enum.Font.Gotham
    label.TextSize = 18
    label.TextXAlignment = Enum.TextXAlignment.Left
    label.Parent = frame

    local box = Instance.new("TextBox")
    box.Size = UDim2.new(0.5, -20, 0, 30)
    box.Position = UDim2.new(0.45, 0, 0, 30 * i + 10)
    box.Text = tostring(value)
    box.ClearTextOnFocus = false
    box.TextColor3 = Color3.fromRGB(255, 255, 255)
    box.BackgroundTransparency = 0.3
    box.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
    box.Font = Enum.Font.Gotham
    box.TextSize = 18
    box.Parent = frame

    boxes[name] = box
    i = i + 1
end

-- Fly Button
local flyButton = Instance.new("TextButton")
flyButton.Size = UDim2.new(0, 100, 0, 30)
flyButton.Position = UDim2.new(0.5, -50, 0, 30 * i + 10)
flyButton.Text = "Click Me"
flyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
flyButton.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
flyButton.Font = Enum.Font.GothamBold
flyButton.TextSize = 18
flyButton.Parent = frame

-- Update setting function (no caps)
local function updateSetting(name, value)
    value = tonumber(value)
    if not value then return end
    settings[name] = value

    if name == "Speed" then
        if Player.Character and Player.Character:FindFirstChild("Humanoid") then
            Player.Character.Humanoid.WalkSpeed = value
        end
    elseif name == "Jump" then
        if Player.Character and Player.Character:FindFirstChild("Humanoid") then
            Player.Character.Humanoid.JumpPower = value
        end
    elseif name == "FOV" then
        workspace.CurrentCamera.FieldOfView = value
    end
end

-- Connect TextBoxes
for name, box in pairs(boxes) do
    box.FocusLost:Connect(function()
        updateSetting(name, box.Text)
    end)
end

-- Fly button functionality
flyButton.MouseButton1Click:Connect(function()
    if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
        local root = Player.Character.HumanoidRootPart
        RunService:BindToRenderStep("FlyUp", Enum.RenderPriority.Character.Value, function()
            root.Velocity = Vector3.new(0, 5000, 0)
        end)
    end
end)

-- Make UI movable
local dragging, dragInput, dragStart, startPos
frame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 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 then
        dragInput = input
    end
end)

UserInputService.InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        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
end)

Features & Information

v2 universal settings

Community Comments (2)

abusiveness_XDabusiveness_XDNov 28, 2025

W hub

UntrUntrNov 29, 2025

ai

More Scripts for Universal Scripts