My first script
Key RequiredUniversal

My first script

Universal Scriptjustinjaemes4justinjaemes4 16 views 45 executesUpdated Jul 11, 2026
Unrated
00
Lua Script•97 lines (3342 chars)
local RayWare = Instance.new("ScreenGui")
RayWare.Name = "RayWare"
RayWare.ResetOnSpawn = false
RayWare.Parent = game:GetService("CoreGui")

-- Smaller MainFrame
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 420, 0, 380)        -- Reduced from 520x480
MainFrame.Position = UDim2.new(0.5, -210, 0.5, -190)
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = RayWare

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = MainFrame

-- Title Bar
local TitleBar = Instance.new("Frame")
TitleBar.Size = UDim2.new(1, 0, 0, 45)           -- Slightly shorter
TitleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TitleBar.Parent = MainFrame

local TitleCorner = Instance.new("UICorner")
TitleCorner.CornerRadius = UDim.new(0, 10)
TitleCorner.Parent = TitleBar

local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0.6, 0)
Title.BackgroundTransparency = 1
Title.Text = "RayWare"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextScaled = true
Title.Font = Enum.Font.GothamBold
Title.Parent = TitleBar

local GameTitle = Instance.new("TextLabel")
GameTitle.Size = UDim2.new(1, 0, 0.4, 0)
GameTitle.Position = UDim2.new(0, 0, 0.6, 0)
GameTitle.BackgroundTransparency = 1
GameTitle.Text = "The Chosen One"
GameTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
GameTitle.TextScaled = true
GameTitle.Font = Enum.Font.Gotham
GameTitle.Parent = TitleBar

-- Credits
local Credits = Instance.new("TextLabel")
Credits.Size = UDim2.new(1, 0, 0, 22)
Credits.Position = UDim2.new(0, 0, 1, -22)
Credits.BackgroundTransparency = 1
Credits.Text = "Credits: Ray, Koi, Ched"
Credits.TextColor3 = Color3.fromRGB(160, 160, 160)
Credits.TextScaled = true
Credits.Font = Enum.Font.Gotham
Credits.Parent = MainFrame

-- Close Button
local CloseButton = Instance.new("TextButton")
CloseButton.Size = UDim2.new(0, 35, 0, 35)
CloseButton.Position = UDim2.new(1, -38, 0, 5)
CloseButton.BackgroundTransparency = 1
CloseButton.Text = "✕"
CloseButton.TextColor3 = Color3.fromRGB(255, 80, 80)
CloseButton.TextScaled = true
CloseButton.Font = Enum.Font.GothamBold
CloseButton.Parent = TitleBar

CloseButton.MouseButton1Click:Connect(function()
    RayWare:Destroy()
end)

local function SendNotification(title, text)
    game.StarterGui:SetCore("SendNotification", {Title = title, Text = text, Duration = 3})
end

local chatRemote = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents", true) and
                   game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents:FindFirstChild("SayMessageRequest")

local function AutoChat(msg)
    if chatRemote then pcall(function() chatRemote:FireServer(msg, "All") end) end
end

-- Scrolling Frame (adjusted for smaller size)
local Scrolling = Instance.new("ScrollingFrame")
Scrolling.Size = UDim2.new(1, -20, 1, -135)      -- Adjusted height
Scrolling.Position = UDim2.new(0, 10, 0, 60)
Scrolling.BackgroundTransparency = 1
Scrolling.ScrollBarThickness = 6
Scrolling.Parent = MainFrame

local UIListLayout = Instance.new("UIListLayout")
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 6)            -- Slightly tighter padding
UIListLayout.Parent = Scrolling

Features & Information

its first so don't bash me

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts