
289 Views
14 Executions
SIMPLE UI MADE BY ME OPENSOURCE CODE
Universal Script π
10 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
this are UI for everyone who lazy make own UI i'll give my simple UI π
-- Services
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "UniversalUIGUI"
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.ResetOnSpawn = false
task.wait(0.1)
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 400, 0, 300)
mainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 50)
mainFrame.BorderSizePixel = 0
mainFrame.ClipsDescendants = true
mainFrame.Parent = screenGui
local function centerFrame()
if not screenGui or not mainFrame then return end
if not screenGui.AbsoluteSize or not mainFrame.AbsoluteSize then return end
local screenSize = screenGui.AbsoluteSize
local frameSize = mainFrame.AbsoluteSize
if screenSize.X > 0 and frameSize.X > 0 then
local centerX = (screenSize.X - frameSize.X) / 2
local centerY = (screenSize.Y - frameSize.Y) / 2
mainFrame.Position = UDim2.fromOffset(centerX, centerY)
end
end
task.spawn(function()
task.wait(0.2)
if mainFrame and mainFrame.Parent then








i will not use this skidded * ui who was made by ai
Mf make a Ui using Ai and suddenly bro's a scripterπ€£