-- ========================================================= -- UNIVERSAL GAME SCRIPTS - ULTRA RAINBOW EDITION -- ========================================================= if not game:IsLoaded() then game.Loaded:Wait() end local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer or Players:GetPropertyChangedSignal("LocalPlayer"):Wait() -- Safe GUI Container Detection local ParentGui if gethui then ParentGui = gethui() else local success, core = pcall(function() return game:GetService("CoreGui") end) ParentGui = (success and core) and core or LocalPlayer:WaitForChild("PlayerGui") end -- Clean up existing UI instances if ParentGui:FindFirstChild("Rayfield") then ParentGui.Rayfield:Destroy() end -- Load Rayfield UI Library with Fallback local Rayfield local success, err = pcall(function() Rayfield = loadstring(game:HttpGet("https://sirius.menu/gen2"))() end) if not success or not Rayfield then Rayfield = loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Rayfield/main/source"))() end -- Create Window local Window = Rayfield:CreateWindow({ Name = "✨ Universal Game Scripts ✨", LoadingTitle = "Loading Universal Game Scripts...", LoadingSubtitle = "Ultra Visuals & Custom ESP Engine", Theme = "Ocean", ConfigurationSaving = { Enabled = false }, Discord = { Enabled = false }, KeySystem = false }) ---------------------------------------------------- -- DYNAMIC RAINBOW BACKGROUND ENGINE ---------------------------------------------------- local rainbowActive = true local rainbowSpeed = 2 local rainbowGradient local function InjectRainbowBackground() task.spawn(function() task.wait(0.5) local rayfieldGui = ParentGui:FindFirstChild("Rayfield") if not rayfieldGui then return end local mainFrame = rayfieldGui:FindFirstChild("Main", true) or rayfieldGui:FindFirstChildOfClass("Frame") if mainFrame then -- Create Animated Rainbow Gradient Overlay rainbowGradient = Instance.new("UIGradient") rainbowGradient.Name = "UltraRainbowOverlay" rainbowGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.16, Color3.fromRGB(255, 127, 0)), ColorSequenceKeypoint.new(0.33, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 0)), ColorSequenceKeypoint.new(0.66, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(0.83, Color3.fromRGB(0, 0, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 255)) }) rainbowGradient.Parent = mainFrame -- Glow stroke effect local stroke = mainFrame:FindFirstChildOfClass("UIStroke") or Instance.new("UIStroke", mainFrame) stroke.Thickness = 2 stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border -- Animation Connection RunService.RenderStepped:Connect(function(dt) if rainbowActive and rainbowGradient then rainbowGradient.Rotation = (rainbowGradient.Rotation + (dt * 60 * rainbowSpeed)) % 360 stroke.Color = Color3.fromHSV((tick() * rainbowSpeed * 0.2) % 1, 0.9, 1) end end) end end) end InjectRainbowBackground() ---------------------------------------------------- -- ESP ENGINE & VISUAL SETTINGS ---------------------------------------------------- local ESPConfig = { Enabled = false, Boxes = false, Names = false, Distance = false, Color = Color3.fromRGB(0, 255, 255), RainbowESP = false } local espContainer = {} local function createESPForPlayer(player) if player == LocalPlayer then return end local function onCharacterAdded(char) if not char then return end local hrp = char:WaitForChild("HumanoidRootPart", 5) local head = char:WaitForChild("Head", 5) if not hrp or not head then return end -- Remove Old ESP if char:FindFirstChild("UGS_Highlight") then char.UGS_Highlight:Destroy() end if head:FindFirstChild("UGS_Billboard") then head.UGS_Billboard:Destroy() end -- 1. Highlight (Chams/Box ESP) local highlight = Instance.new("Highlight") highlight.Name = "UGS_Highlight" highlight.FillColor = ESPConfig.Color highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.FillTransparency = 0.5 highlight.OutlineTransparency = 0 highlight.Enabled = ESPConfig.Enabled and ESPConfig.Boxes highlight.Adornee = char highlight.Parent = char -- 2. BillboardGui (Name & Distance ESP) local bb = Instance.new("BillboardGui") bb.Name = "UGS_Billboard" bb.Adornee = head bb.Size = UDim2.new(0, 200, 0, 50) bb.StudsOffset = Vector3.new(0, 2.5, 0) bb.AlwaysOnTop = true bb.Enabled = ESPConfig.Enabled and (ESPConfig.Names or ESPConfig.Distance) bb.Parent = head local nameLabel = Instance.new("TextLabel") nameLabel.Name = "NameLabel" nameLabel.Size = UDim2.new(1, 0, 0.5, 0) nameLabel.BackgroundTransparency = 1 nameLabel.TextColor3 = Color3.fromRGB(255, 255, 255) nameLabel.TextStrokeTransparency = 0 nameLabel.Font = Enum.Font.SourceSansBold nameLabel.TextSize = 16 nameLabel.Parent = bb local distLabel = Instance.new("TextLabel") distLabel.Name = "DistLabel" distLabel.Size = UDim2.new(1, 0, 0.5, 0) distLabel.Position = UDim2.new(0, 0, 0.5, 0) distLabel.BackgroundTransparency = 1 distLabel.TextColor3 = Color3.fromRGB(200, 250, 255) distLabel.TextStrokeTransparency = 0 distLabel.Font = Enum.Font.SourceSans distLabel.TextSize = 14 distLabel.Parent = bb espContainer[player] = { Highlight = highlight, Billboard = bb, NameLabel = nameLabel, DistLabel = distLabel, Character = char, HRP = hrp } end if player.Character then onCharacterAdded(player.Character) end player.CharacterAdded:Connect(onCharacterAdded) end -- Initialize for current players & new entries for _, p in ipairs(Players:GetPlayers()) do createESPForPlayer(p) end Players.PlayerAdded:Connect(createESPForPlayer) Players.PlayerRemoving:Connect(function(p) espContainer[p] = nil end) -- ESP Real-time Rendering Loop RunService.RenderStepped:Connect(function() local myChar = LocalPlayer.Character local myHRP = myChar and myChar:FindFirstChild("HumanoidRootPart") local activeColor = ESPConfig.RainbowESP and Color3.fromHSV((tick() * 0.5) % 1, 0.8, 1) or ESPConfig.Color for player, data in pairs(espContainer) do if player and player.Parent and data.Character and data.Character.Parent and data.HRP and data.HRP.Parent then local isMasterOn = ESPConfig.Enabled -- Highlight Update if data.Highlight then data.Highlight.Enabled = isMasterOn and ESPConfig.Boxes data.Highlight.FillColor = activeColor end -- Billboard Update if data.Billboard then data.Billboard.Enabled = isMasterOn and (ESPConfig.Names or ESPConfig.Distance) -- Name ESP Toggle if ESPConfig.Names then data.NameLabel.Text = player.DisplayName .. " (@" .. player.Name .. ")" data.NameLabel.TextColor3 = activeColor data.NameLabel.Visible = true else data.NameLabel.Visible = false end -- Distance ESP Toggle if ESPConfig.Distance and myHRP then local studs = math.floor((myHRP.Position - data.HRP.Position).Magnitude) data.DistLabel.Text = "📏 " .. tostring(studs) .. " Studs" data.DistLabel.Visible = true else data.DistLabel.Visible = false end end end end end) ---------------------------------------------------- -- TAB 1: DEDICATED ESP CONTROL CENTER ---------------------------------------------------- local ESPTab = Window:CreateTab({ Name = "ESP Visuals GUI", Icon = 4483362458 }) ESPTab:CreateSection("Master ESP Controls") ESPTab:CreateToggle({ Name = "Enable Master ESP Engine", CurrentValue = false, Callback = function(Value) ESPConfig.Enabled = Value end, }) ESPTab:CreateSection("ESP Visual Elements") ESPTab:CreateToggle({ Name = "Enable Player Names", CurrentValue = false, Callback = function(Value) ESPConfig.Names = Value end, }) ESPTab:CreateToggle({ Name = "Enable Player Distance", CurrentValue = false, Callback = function(Value) ESPConfig.Distance = Value end, }) ESPTab:CreateToggle({ Name = "Enable Chams / Box Highlight", CurrentValue = false, Callback = function(Value) ESPConfig.Boxes = Value end, }) ESPTab:CreateSection("ESP Customization & Colors") ESPTab:CreateColorPicker({ Name = "ESP Highlight Color", Color = Color3.fromRGB(0, 255, 255), Callback = function(Value) ESPConfig.Color = Value end, }) ESPTab:CreateToggle({ Name = "Rainbow Animated ESP Color", CurrentValue = false, Callback = function(Value) ESPConfig.RainbowESP = Value end, }) ---------------------------------------------------- -- TAB 2: UNIVERSAL PLAYER UTILITIES ---------------------------------------------------- local UniversalTab = Window:CreateTab({ Name = "Universal Mods", Icon = 4483362458 }) local walkSpeedVal = 16 local jumpPowerVal = 50 local noclipEnabled = false local infJumpEnabled = false UniversalTab:CreateSection("Movement Controls") UniversalTab:CreateSlider({ Name = "WalkSpeed Multiplier", Range = {16, 250}, Increment = 1, Suffix = "Speed", CurrentValue = 16, Callback = function(Value) walkSpeedVal = Value if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then LocalPlayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = Value end end, }) UniversalTab:CreateSlider({ Name = "Jump Power", Range = {50, 300}, Increment = 5, Suffix = "Power", CurrentValue = 50, Callback = function(Value) jumpPowerVal = Value if LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then LocalPlayer.Character:FindFirstChildOfClass("Humanoid").JumpPower = Value end end, }) UniversalTab:CreateToggle({ Name = "Noclip (Walk Through Walls)", CurrentValue = false, Callback = function(Value) noclipEnabled = Value end, }) RunService.Stepped:Connect(function() if noclipEnabled and LocalPlayer.Character then for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end) UniversalTab:CreateToggle({ Name = "Infinite Jump", CurrentValue = false, Callback = function(Value) infJumpEnabled = Value end, }) UserInputService.JumpRequest:Connect(function() if infJumpEnabled and LocalPlayer.Character and LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping) end end) ---------------------------------------------------- -- TAB 3: ULTRA GUI RAINBOW SETTINGS ---------------------------------------------------- local SettingsTab = Window:CreateTab({ Name = "GUI Style & FX", Icon = 4483362458 }) SettingsTab:CreateSection("Rainbow GUI Background Controls") SettingsTab:CreateToggle({ Name = "Animated Rainbow GUI Overlay", CurrentValue = true, Callback = function(Value) rainbowActive = Value if rainbowGradient then rainbowGradient.Enabled = Value end end, }) SettingsTab:CreateSlider({ Name = "Rainbow Animation Speed", Range = {1, 10}, Increment = 0.5, Suffix = "x Speed", CurrentValue = 2, Callback = function(Value) rainbowSpeed = Value end, }) SettingsTab:CreateDropdown({ Name = "Rayfield UI Theme Preset", Options = {"Ocean", "AmberGlow", "Amethyst", "Bloom", "DarkBlue", "Green", "Serenity"}, CurrentOption = {"Ocean"}, MultipleOptions = false, Callback = function(Option) local selected = type(Option) == "table" and Option[1] or Option pcall(function() Window:SetTheme(selected) end) end, }) Rayfield:Notify({ Title = "Universal Game Scripts Loaded!", Content = "ESP & Ultra Rainbow GUI are ready to use.", Duration = 5 })