-- Load Rayfield UI Library local Rayfield = loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Rayfield/main/source"))() -- Get player info local player = game.Players.LocalPlayer local username = player.Name local avatarUrl = "https://www.roblox.com/headshot-thumbnail/image?userId="..player.UserId.."&width=150&height=150&format=png" -- Create Main Window with Lightning Theme local Window = Rayfield:CreateWindow({ Name = "ZayHub - Lightning UI", LoadingTitle = "Loading ZayHub...", LoadingSubtitle = "Welcome to ZayHub, " .. username .. "!", ConfigurationSaving = { Enabled = true, FileName = "ZayHubConfig" }, Discord = { Enabled = false }, KeySystem = false }) -- Welcome Tab local WelcomeTab = Window:CreateTab("Welcome", 6034972954) WelcomeTab:CreateLabel("Welcome to ZayHub, " .. username .. "!") WelcomeTab:CreateImage({ Image = avatarUrl, ImageSize = UDim2.new(0, 150, 0, 150) }) -- Main Tab (Infinite Money Toggle) local MainTab = Window:CreateTab("Main", 4483362458) local Section = MainTab:CreateSection("Money Hacks") -- Warning Message for Infinite Money local Warning = false MainTab:CreateToggle({ Name = "Infinite Money", CurrentValue = false, Flag = "InfiniteMoney", Callback = function(Value) if Value then if not Warning then Rayfield:CreateWindow({ Name = "Warning", LoadingTitle = "⚠️ Warning!", LoadingSubtitle = "We are not responsible for bans. Are you sure you want to activate?", ConfigurationSaving = { Enabled = false }, KeySystem = false }) Warning = true return end -- Infinite Money Script game:GetService("RunService").Stepped:Connect(function() local player = game.Players.LocalPlayer if player and player.Character then local bank = player:FindFirstChild("BankAccount") -- Assume this is the correct name if bank then bank.Value = bank.Value + 500 end end end) end end }) -- Speed Boost Tab local SpeedTab = Window:CreateTab("Speed", 6034972954) local SpeedSection = SpeedTab:CreateSection("Speed Boosts") SpeedTab:CreateToggle({ Name = "Speed Boost", CurrentValue = false, Flag = "SpeedBoost", Callback = function(Value) if Value then game:GetService("RunService").Stepped:Connect(function() local player = game.Players.LocalPlayer if player and player.Character then player.Character.Humanoid.WalkSpeed = 100 -- Speed boost end end) else game:GetService("RunService").Stepped:Connect(function() local player = game.Players.LocalPlayer if player and player.Character then player.Character.Humanoid.WalkSpeed = 16 -- Default walk speed end end) end end }) -- Teleport Tab local TeleportTab = Window:CreateTab("Teleport", 4483362458) local TeleportSection = TeleportTab:CreateSection("Teleport to Locations") TeleportTab:CreateButton({ Name = "Teleport to Spawn", Callback = function() local spawn = game.Workspace:FindFirstChild("SpawnLocation") if spawn then player.Character:SetPrimaryPartCFrame(spawn.CFrame) end end }) -- Like Button Tab (Tracking likes) local LikeTab = Window:CreateTab("Likes", 4483362458) local LikeSection = LikeTab:CreateSection("Your Likes") local LikeCount = 0 LikeTab:CreateButton({ Name = "Like This Script", Callback = function() LikeCount = LikeCount + 1 LikeTab:CreateLabel("Likes: " .. LikeCount) end }) -- UI Control Buttons: Minimize, Close, and Slide Animations local UiControlTab = Window:CreateTab("UI Controls", 6034972954) UiControlTab:CreateSection("Controls") -- Minimize button (turns into block) UiControlTab:CreateButton({ Name = "Minimize UI", Callback = function() Window:SetTitle("⚪") -- Sets title to a Roblox logo end }) -- Close button (Destroys UI) UiControlTab:CreateButton({ Name = "Close UI", Callback = function() Window:Destroy() end }) -- Sound effects for actions local function playClickSound() local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://1234567890" -- Choose a sound ID here sound.Parent = game.Workspace sound:Play() end -- Connect the play sound function to buttons for _, button in ipairs(Window:GetChildren()) do if button:IsA("Button") then button.MouseButton1Click:Connect(playClickSound) end end -- Smooth Slide-In and Slide-Out Animation for UI Window:TweenPosition(UDim2.new(0.5, -150, 0.5, -200), "Out", "Quad", 0.5, true) Window:TweenPosition(UDim2.new(1, 0, 1, 0), "In", "Quad", 0.5, true)