Debug Universal
Key RequiredUniversal

Debug Universal

Universal ScriptBacongod112Bacongod112 1.9K views 18 executesUpdated Nov 11, 2024
5.0/ 5(1 votes)
10100% Positive
Lua Script•44 lines (1594 chars)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

-- Create GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 100)
frame.Position = UDim2.new(1, -210, 0, 10)
frame.BackgroundTransparency = 0.5
frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
frame.Parent = screenGui

local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(1, 0, 1, 0)
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel.BackgroundTransparency = 1
textLabel.Font = Enum.Font.SourceSans
textLabel.TextSize = 14
textLabel.TextXAlignment = Enum.TextXAlignment.Left
textLabel.TextYAlignment = Enum.TextYAlignment.Top
textLabel.Parent = frame

-- Update the stats
local function updateStats()
    local position = character.HumanoidRootPart.Position
    local health = character:WaitForChild("Humanoid").Health
    local walkspeed = character:WaitForChild("Humanoid").WalkSpeed
    local jumpHeight = character:WaitForChild("Humanoid").JumpHeight

    textLabel.Text = "X: " .. math.round(position.X) .. "\n"
                      .. "Y: " .. math.round(position.Y) .. "\n"
                      .. "Z: " .. math.round(position.Z) .. "\n\n"
                      .. "Health: " .. math.round(health) .. "\n"
                      .. "Walkspeed: " .. walkspeed .. "\n"
                      .. "Jump Height: " .. jumpHeight
end

-- Continuously update the stats every 0.1 seconds
while true do
    updateStats()
    wait(0.1)
end

Features & Information

This is a universal script that shows your X Y Z position, HP, Walkspees and jump height to make scripting easier for some people or just to see the stats

Community Comments (1)

skyislandsskyislandsJan 5, 2025(edited)

did u use chat gpt for this

More Scripts for Universal Scripts