local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- ============================================ -- SETTINGS -- ============================================ local BackgroundDecalId = "rbxassetid://79148306484407" local buttonNames = { "Get Admin", "Reset yourself", "Reset others", "Explode others", "Punish others", "Respawn other", "Freeze others", "Bring others", "skydive others", "Kill others", "blind others", "Custom Message", "Music Box", "perm f3x", "c00lful all", "ungear others", "Panic", "Auto Re: OFF", -- 🔹 Button 18 with ON/OFF status } local CYAN = Color3.fromRGB(0, 255, 255) local DARK_BLUE = Color3.fromRGB(5, 20, 35) -- ============================================ -- SCREEN GUI -- ============================================ local gui = Instance.new("ScreenGui") gui.Name = "CyanSquareGUI" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = playerGui -- ============================================ -- MAIN FRAME -- ============================================ local frame = Instance.new("Frame") frame.Name = "MainFrame" frame.Size = UDim2.new(0, 320, 0, 280) frame.Position = UDim2.new(0.5, -160, 0.5, -140) frame.BackgroundColor3 = DARK_BLUE frame.BackgroundTransparency = 0.05 frame.BorderSizePixel = 0 frame.Active = true frame.ZIndex = 1 frame.Parent = gui -- ============================================ -- DECAL BACKGROUND -- ============================================ local backgroundImage = Instance.new("ImageLabel") backgroundImage.Name = "BackgroundDecal" backgroundImage.Size = UDim2.new(1, 0, 1, 0) backgroundImage.Position = UDim2.new(0, 0, 0, 0) backgroundImage.BackgroundTransparency = 1 backgroundImage.Image = BackgroundDecalId backgroundImage.ImageTransparency = 0.5 backgroundImage.ScaleType = Enum.ScaleType.Crop backgroundImage.BorderSizePixel = 0 backgroundImage.ZIndex = 1 backgroundImage.Parent = frame -- ============================================ -- DARK OVERLAY -- ============================================ local overlay = Instance.new("Frame") overlay.Name = "BackgroundOverlay" overlay.Size = UDim2.new(1, 0, 1, 0) overlay.Position = UDim2.new(0, 0, 0, 0) overlay.BackgroundColor3 = Color3.fromRGB(0, 25, 40) overlay.BackgroundTransparency = 0.35 overlay.BorderSizePixel = 0 overlay.ZIndex = 2 overlay.Parent = frame -- ============================================ -- BORDER -- ============================================ local stroke = Instance.new("UIStroke") stroke.Color = CYAN stroke.Thickness = 2 stroke.Transparency = 0.15 stroke.Parent = frame -- ============================================ -- TITLE -- ============================================ local title = Instance.new("TextLabel") title.Name = "Title" title.Size = UDim2.new(1, -80, 0, 35) title.Position = UDim2.new(0, 12, 0, 5) title.BackgroundTransparency = 1 title.Text = "kohls gui by c00lful" title.TextColor3 = CYAN title.Font = Enum.Font.GothamBold title.TextSize = 20 title.TextXAlignment = Enum.TextXAlignment.Left title.ZIndex = 4 title.Parent = frame -- ============================================ -- TITLE LINE -- ============================================ local line = Instance.new("Frame") line.Name = "TitleLine" line.Size = UDim2.new(1, -24, 0, 1) line.Position = UDim2.new(0, 12, 0, 40) line.BackgroundColor3 = CYAN line.BackgroundTransparency = 0.35 line.BorderSizePixel = 0 line.ZIndex = 4 line.Parent = frame -- ============================================ -- CLOSE BUTTON -- ============================================ local closeBtn = Instance.new("TextButton") closeBtn.Name = "CloseButton" closeBtn.Size = UDim2.new(0, 28, 0, 28) closeBtn.Position = UDim2.new(1, -36, 0, 6) closeBtn.BackgroundColor3 = Color3.fromRGB(220, 40, 55) closeBtn.BackgroundTransparency = 0.5 closeBtn.BorderSizePixel = 0 closeBtn.Text = "X" closeBtn.TextColor3 = Color3.new(1, 1, 1) closeBtn.Font = Enum.Font.GothamBold closeBtn.TextSize = 15 closeBtn.ZIndex = 5 closeBtn.Parent = frame local closeStroke = Instance.new("UIStroke") closeStroke.Color = Color3.fromRGB(255, 100, 100) closeStroke.Thickness = 1 closeStroke.Parent = closeBtn -- ============================================ -- DELETE BUTTON (NEXT TO CLOSE) -- ============================================ local deleteBtn = Instance.new("TextButton") deleteBtn.Name = "DeleteButton" deleteBtn.Size = UDim2.new(0, 32, 0, 28) deleteBtn.Position = UDim2.new(1, -72, 0, 6) deleteBtn.BackgroundColor3 = Color3.fromRGB(170, 25, 35) deleteBtn.BackgroundTransparency = 0.5 deleteBtn.BorderSizePixel = 0 deleteBtn.Text = "DEL" deleteBtn.TextColor3 = Color3.new(1, 1, 1) deleteBtn.Font = Enum.Font.GothamBold deleteBtn.TextSize = 10 deleteBtn.ZIndex = 5 deleteBtn.Parent = frame local deleteStroke = Instance.new("UIStroke") deleteStroke.Color = Color3.fromRGB(255, 80, 80) deleteStroke.Thickness = 1 deleteStroke.Parent = deleteBtn -- ============================================ -- SCROLLABLE BUTTON CONTAINER -- ============================================ local container = Instance.new("ScrollingFrame") container.Name = "ButtonContainer" container.Size = UDim2.new(1, -24, 0.65, 0) container.Position = UDim2.new(0, 12, 0, 52) container.BackgroundTransparency = 1 container.BorderSizePixel = 0 container.ScrollBarThickness = 4 container.ScrollBarImageColor3 = CYAN container.CanvasSize = UDim2.new(0, 0, 0, 0) container.AutomaticCanvasSize = Enum.AutomaticSize.Y container.ScrollingDirection = Enum.ScrollingDirection.Y container.ZIndex = 4 container.Parent = frame local layout = Instance.new("UIGridLayout") layout.CellSize = UDim2.new(0.23, 0, 0, 48) layout.CellPadding = UDim2.new(0.02, 0, 0, 7) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.VerticalAlignment = Enum.VerticalAlignment.Top layout.Parent = container -- ============================================ -- BUTTONS 1-17 (NORMAL) -- ============================================ local buttons = {} for i = 1, 17 do local btn = Instance.new("TextButton") btn.Name = "Button" .. i btn.BackgroundColor3 = Color3.fromRGB(0, 140, 170) btn.BackgroundTransparency = 0.5 btn.BorderSizePixel = 0 btn.Text = buttonNames[i] btn.TextColor3 = CYAN btn.Font = Enum.Font.GothamBold btn.TextSize = 12 btn.TextWrapped = true btn.TextXAlignment = Enum.TextXAlignment.Center btn.TextYAlignment = Enum.TextYAlignment.Center btn.AutoButtonColor = false btn.ZIndex = 5 btn.Parent = container local btnStroke = Instance.new("UIStroke") btnStroke.Color = CYAN btnStroke.Thickness = 1 btnStroke.Transparency = 0.25 btnStroke.Parent = btn table.insert(buttons, btn) btn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then btn.BackgroundTransparency = 0.25 end end) btn.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then btn.BackgroundTransparency = 0.5 end end) end -- ============================================ -- 🔹 BUTTON 18 - AUTO RE: ON/OFF TOGGLE -- ============================================ local autoReBtn = Instance.new("TextButton") autoReBtn.Name = "AutoReButton" autoReBtn.BackgroundColor3 = Color3.fromRGB(0, 140, 170) autoReBtn.BackgroundTransparency = 0.5 autoReBtn.BorderSizePixel = 0 autoReBtn.Text = "Auto Re: OFF" autoReBtn.TextColor3 = CYAN autoReBtn.Font = Enum.Font.GothamBold autoReBtn.TextSize = 12 autoReBtn.TextWrapped = true autoReBtn.TextXAlignment = Enum.TextXAlignment.Center autoReBtn.TextYAlignment = Enum.TextYAlignment.Center autoReBtn.AutoButtonColor = false autoReBtn.ZIndex = 5 autoReBtn.Parent = container local autoReStroke = Instance.new("UIStroke") autoReStroke.Color = CYAN autoReStroke.Thickness = 1 autoReStroke.Transparency = 0.25 autoReStroke.Parent = autoReBtn table.insert(buttons, autoReBtn) autoReBtn.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then autoReBtn.BackgroundTransparency = 0.25 end end) autoReBtn.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then autoReBtn.BackgroundTransparency = 0.5 end end) -- ============================================ -- MOBILE + PC DRAGGING -- ============================================ local function makeDraggable(object) local dragging = false local dragStart local startPosition local dragInput object.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPosition = object.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) object.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart object.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end end) end makeDraggable(frame) -- ============================================ -- MOVABLE OPEN BUTTON -- ============================================ local openBtn = Instance.new("TextButton") openBtn.Name = "OpenButton" openBtn.Size = UDim2.new(0, 80, 0, 40) openBtn.Position = UDim2.new(0, 15, 0.5, -20) openBtn.BackgroundColor3 = Color3.fromRGB(0, 80, 110) openBtn.BackgroundTransparency = 0.5 openBtn.BorderSizePixel = 0 openBtn.Text = "OPEN" openBtn.TextColor3 = CYAN openBtn.Font = Enum.Font.GothamBold openBtn.TextSize = 15 openBtn.Visible = false openBtn.Active = true openBtn.ZIndex = 10 openBtn.Parent = gui local openStroke = Instance.new("UIStroke") openStroke.Color = CYAN openStroke.Thickness = 2 openStroke.Parent = openBtn makeDraggable(openBtn) -- ============================================ -- OPEN / CLOSE -- ============================================ local isVisible = true local deleted = false local function showGUI() if deleted then return end isVisible = true frame.Visible = true openBtn.Visible = false end local function hideGUI() if deleted then return end isVisible = false frame.Visible = false openBtn.Visible = true end closeBtn.MouseButton1Click:Connect(function() hideGUI() end) openBtn.MouseButton1Click:Connect(function() showGUI() end) -- ============================================ -- DELETE -- ============================================ deleteBtn.MouseButton1Click:Connect(function() deleted = true gui:Destroy() print("CyanSquareGUI deleted!") end) -- ============================================ -- M KEY TOGGLE -- ============================================ UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.M then if isVisible then hideGUI() else showGUI() end end end) -- ============================================ -- BUTTON 1 - GET ADMIN -- ============================================ buttons[1].MouseButton1Click:Connect(function() local Players = game:GetService("Players") local player = Players.LocalPlayer local savedCFrame = nil local function getAllHeads() local heads = {} for _, v in ipairs(workspace:GetDescendants()) do if v:IsA("Part") and v.Name == "Head" and v.Material == Enum.Material.Plastic and v.Parent and v.Parent.Name == "Touch to get admin" then table.insert(heads, v) end end return heads end local function getAdmin() local character = player.Character local root = character and character:FindFirstChild("HumanoidRootPart") if not root then return end savedCFrame = root.CFrame local heads = getAllHeads() if #heads > 0 then local chosen = heads[math.random(1, #heads)] root.CFrame = chosen.CFrame + Vector3.new(0, 3, 0) end end getAdmin() end) -- ============================================ -- BUTTON 2 -- ============================================ buttons[2].MouseButton1Click:Connect(function() local args = { [1] = "!re", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 3 -- ============================================ buttons[3].MouseButton1Click:Connect(function() local args = { [1] = "!reset others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 4 -- ============================================ buttons[4].MouseButton1Click:Connect(function() local args = { [1] = "!explode others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 5 -- ============================================ buttons[5].MouseButton1Click:Connect(function() local args = { [1] = "!punish others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 6 -- ============================================ buttons[6].MouseButton1Click:Connect(function() local args = { [1] = "!respawn others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 7 -- ============================================ buttons[7].MouseButton1Click:Connect(function() local args = { [1] = "!freeze others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 8 -- ============================================ buttons[8].MouseButton1Click:Connect(function() local args = { [1] = "!bring others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 9 -- ============================================ buttons[9].MouseButton1Click:Connect(function() local args = { [1] = "!skydive others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 10 -- ============================================ buttons[10].MouseButton1Click:Connect(function() local args = { [1] = "!kill others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 11 -- ============================================ buttons[11].MouseButton1Click:Connect(function() local args = { [1] = "!blind others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- CUSTOM MESSAGE BOX -- ============================================ local customMessageBox = Instance.new("TextBox") customMessageBox.Name = "CustomMessageBox" customMessageBox.Size = UDim2.new(0, 260, 0, 45) customMessageBox.Position = UDim2.new(0.5, -130, 0.5, -22) customMessageBox.BackgroundColor3 = DARK_BLUE customMessageBox.BackgroundTransparency = 0.05 customMessageBox.BorderSizePixel = 0 customMessageBox.PlaceholderText = "Type your message..." customMessageBox.PlaceholderColor3 = Color3.fromRGB(150, 220, 220) customMessageBox.Text = "" customMessageBox.TextColor3 = Color3.new(1, 1, 1) customMessageBox.Font = Enum.Font.Gotham customMessageBox.TextSize = 14 customMessageBox.ClearTextOnFocus = false customMessageBox.Visible = false customMessageBox.ZIndex = 20 customMessageBox.Parent = gui local customStroke = Instance.new("UIStroke") customStroke.Color = CYAN customStroke.Thickness = 2 customStroke.Parent = customMessageBox -- ============================================ -- BUTTON 12 - CUSTOM MESSAGE -- ============================================ buttons[12].MouseButton1Click:Connect(function() customMessageBox.Visible = not customMessageBox.Visible if customMessageBox.Visible then customMessageBox:CaptureFocus() end end) customMessageBox.FocusLost:Connect(function(enterPressed) if not enterPressed then return end local message = customMessageBox.Text if message == "" then return end local replicatedStorage = game:GetService("ReplicatedStorage") local chatEvents = replicatedStorage:FindFirstChild("DefaultChatSystemChatEvents") if not chatEvents then return end local sayMessage = chatEvents:FindFirstChild("SayMessageRequest") if not sayMessage then return end sayMessage:FireServer("!sm " .. message, "System") customMessageBox.Text = "" customMessageBox.Visible = false end) -- ============================================ -- MUSIC BOX -- ============================================ local musicBox = Instance.new("Frame") musicBox.Name = "MusicBox" musicBox.Size = UDim2.new(0, 270, 0, 145) musicBox.Position = UDim2.new(0.5, -135, 0.5, -72) musicBox.BackgroundColor3 = DARK_BLUE musicBox.BackgroundTransparency = 0.05 musicBox.BorderSizePixel = 0 musicBox.Visible = false musicBox.ZIndex = 20 musicBox.Parent = gui local musicStroke = Instance.new("UIStroke") musicStroke.Color = CYAN musicStroke.Thickness = 2 musicStroke.Parent = musicBox local musicTitle = Instance.new("TextLabel") musicTitle.Size = UDim2.new(1, -20, 0, 30) musicTitle.Position = UDim2.new(0, 10, 0, 5) musicTitle.BackgroundTransparency = 1 musicTitle.Text = "MUSIC BOX" musicTitle.TextColor3 = CYAN musicTitle.Font = Enum.Font.GothamBold musicTitle.TextSize = 17 musicTitle.ZIndex = 21 musicTitle.Parent = musicBox local musicIdBox = Instance.new("TextBox") musicIdBox.Name = "MusicIdBox" musicIdBox.Size = UDim2.new(1, -20, 0, 35) musicIdBox.Position = UDim2.new(0, 10, 0, 42) musicIdBox.BackgroundColor3 = Color3.fromRGB(0, 80, 100) musicIdBox.BackgroundTransparency = 0.2 musicIdBox.BorderSizePixel = 0 musicIdBox.PlaceholderText = "Enter Music ID" musicIdBox.PlaceholderColor3 = Color3.fromRGB(150, 220, 220) musicIdBox.Text = "" musicIdBox.TextColor3 = Color3.new(1, 1, 1) musicIdBox.Font = Enum.Font.Gotham musicIdBox.TextSize = 14 musicIdBox.ClearTextOnFocus = false musicIdBox.ZIndex = 21 musicIdBox.Parent = musicBox local playButton = Instance.new("TextButton") playButton.Size = UDim2.new(0.45, -5, 0, 32) playButton.Position = UDim2.new(0, 10, 1, -42) playButton.BackgroundColor3 = Color3.fromRGB(0, 140, 170) playButton.BackgroundTransparency = 0.2 playButton.BorderSizePixel = 0 playButton.Text = "PLAY" playButton.TextColor3 = CYAN playButton.Font = Enum.Font.GothamBold playButton.TextSize = 13 playButton.ZIndex = 21 playButton.Parent = musicBox local stopButton = Instance.new("TextButton") stopButton.Size = UDim2.new(0.45, -5, 0, 32) stopButton.Position = UDim2.new(0.55, -5, 1, -42) stopButton.BackgroundColor3 = Color3.fromRGB(100, 40, 50) stopButton.BackgroundTransparency = 0.2 stopButton.BorderSizePixel = 0 stopButton.Text = "STOP" stopButton.TextColor3 = Color3.new(1, 1, 1) stopButton.Font = Enum.Font.GothamBold stopButton.TextSize = 13 stopButton.ZIndex = 21 stopButton.Parent = musicBox -- ============================================ -- BUTTON 13 - MUSIC BOX -- ============================================ buttons[13].MouseButton1Click:Connect(function() musicBox.Visible = not musicBox.Visible if musicBox.Visible then musicIdBox:CaptureFocus() end end) -- ============================================ -- PLAY MUSIC -- !music YOUR_ID -- ============================================ playButton.MouseButton1Click:Connect(function() local id = musicIdBox.Text:gsub("%s+", "") id = id:gsub("rbxassetid://", "") if id == "" then return end if not tonumber(id) then warn("Invalid Music ID.") return end local args = { [1] = "!music " .. id, [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- STOP MUSIC -- !stopmusic -- ============================================ stopButton.MouseButton1Click:Connect(function() local args = { [1] = "!stopmusic", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 14 - PERM F3X -- !startergive -- ============================================ buttons[14].MouseButton1Click:Connect(function() local args = { [1] = "!startergive", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 15 - C00LFUL ALL -- !char all ServersSides -- ============================================ buttons[15].MouseButton1Click:Connect(function() local args = { [1] = "!char all ServersSides", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- BUTTON 16 - UNGEAR OTHERS -- !ungear others -- ============================================ buttons[16].MouseButton1Click:Connect(function() local args = { [1] = "!ungear others", [2] = "System" } game:GetService("ReplicatedStorage") .DefaultChatSystemChatEvents .SayMessageRequest:FireServer(unpack(args)) end) -- ============================================ -- 🔹 BUTTON 17 - PANIC (INSTANT SPAM) -- ============================================ buttons[17].MouseButton1Click:Connect(function() -- Setup local chatEvent = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest") local runService = game:GetService("RunService") -- All commands to spam local commands = { "/infect all", "/setmessage LOLLL NOOB", "/respawn all", "/brightness 10000000000", "fogend 1", "/sm hey men", "/time 0", "/fire all", "/smoke all", "/ff all", "/sparkles all", "/trip all", "/seizure all", "/music 111044390005146", "/gun all", "/fling all", "/dog all", "/flashify all", "/clone all", "/h hi", "/removelimbs all", "/shiny all", "/minihead all", "/bighead all", "noobify all", "/creeper all", "/disco", "/damage all 100", "/m e", "/explode all", "/skydive all", "/freeze all", "/blind all", "/jail all", "/stun all", "/kill all" } -- 🔹 INSTANT SPAM LOOP (no countdown, no skip button) while true do for _, cmd in ipairs(commands) do chatEvent:FireServer(cmd, "All") end runService.Heartbeat:Wait() end end) -- ============================================ -- 🔹 BUTTON 18 - AUTO RE: ON/OFF TOGGLE -- ============================================ local autoReEnabled = false local autoReConnections = {} local function setupAutoRe(character) local humanoid = character:WaitForChild("Humanoid") -- Disconnect old connection if exists if autoReConnections[character] then autoReConnections[character]:Disconnect() autoReConnections[character] = nil end -- Connect new death listener autoReConnections[character] = humanoid.Died:Connect(function() if autoReEnabled then local chatEvents = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents") local sayMessage = chatEvents and chatEvents:FindFirstChild("SayMessageRequest") if sayMessage then sayMessage:FireServer("!re", "System") print("Auto Re: Triggered !re on death") end end end) end -- Setup for current character if player.Character then setupAutoRe(player.Character) end -- Setup for future respawns player.CharacterAdded:Connect(setupAutoRe) -- ============================================ -- BUTTON 18 CLICK - TOGGLE ON/OFF -- ============================================ buttons[18].MouseButton1Click:Connect(function() autoReEnabled = not autoReEnabled if autoReEnabled then buttons[18].Text = "Auto Re: ON" buttons[18].TextColor3 = Color3.fromRGB(0, 255, 100) -- Green when ON print("Auto Re: ENABLED") else buttons[18].Text = "Auto Re: OFF" buttons[18].TextColor3 = CYAN -- Back to cyan when OFF print("Auto Re: DISABLED") end end)