-- Services local Players = game:GetService("Players") local CoreGui = game:GetService("CoreGui") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer -- Clean up any existing instances to avoid menu overlay duplicates if CoreGui:FindFirstChild("CoolGUIV2_Rylan") then CoreGui.CoolGUIV2_Rylan:Destroy() end --------------------------------------------------------------------- -- 1. Main Framework Creation & Key System Logic --------------------------------------------------------------------- local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "CoolGUIV2_Rylan" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = CoreGui -- Secret passkey required to open the main cheat panel local CorrectKey = "COOLGUIV2" -- Key Prompt Window Frame local KeyFrame = Instance.new("Frame") KeyFrame.Name = "KeyGateFrame" KeyFrame.Size = UDim2.new(0, 300, 0, 120) KeyFrame.Position = UDim2.new(0.5, -150, 0.5, -60) KeyFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0) KeyFrame.BorderSizePixel = 0 KeyFrame.Active = true KeyFrame.Draggable = true KeyFrame.Parent = ScreenGui local KeyTitle = Instance.new("TextLabel") KeyTitle.Size = UDim2.new(1, 0, 0, 30) KeyTitle.BackgroundTransparency = 1 KeyTitle.Text = "🔐 ENTER KEY TO UNLOCK" KeyTitle.TextColor3 = Color3.fromRGB(255, 255, 255) KeyTitle.TextSize = 16 KeyTitle.Font = Enum.Font.SourceSansBold KeyTitle.Parent = KeyFrame local KeyInput = Instance.new("TextBox") KeyInput.Size = UDim2.new(1, -40, 0, 40) KeyInput.Position = UDim2.new(0, 20, 0, 40) KeyInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255) KeyInput.BorderSizePixel = 0 KeyInput.Text = "Enter KEY" KeyInput.TextColor3 = Color3.fromRGB(0, 0, 0) KeyInput.TextSize = 24 KeyInput.Font = Enum.Font.SourceSansBold KeyInput.ClearTextOnFocus = true KeyInput.Parent = KeyFrame -- Main Control Panel Frame (Initially hidden until key passes) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 500, 0, 650) MainFrame.Position = UDim2.new(0.05, 0, 0.1, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 30) MainFrame.BorderSizePixel = 4 MainFrame.BorderColor3 = Color3.fromRGB(255, 0, 0) MainFrame.Active = true MainFrame.Draggable = true MainFrame.Visible = false MainFrame.Parent = ScreenGui -- Handle Passkey Entry Validation KeyInput.FocusLost:Connect(function(enterPressed) if enterPressed then if KeyInput.Text == CorrectKey then KeyFrame.Visible = false MainFrame.Visible = true else KeyInput.Text = "WRONG KEY!" task.wait(1.5) KeyInput.Text = "Enter KEY" end end end) -- Keyboard Toggle (Press RightControl to hide/show the menu once unlocked) UserInputService.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed and input.KeyCode == Enum.KeyCode.RightControl and not KeyFrame.Visible then MainFrame.Visible = not MainFrame.Visible end end) --------------------------------------------------------------------- -- 2. UI Layout Items Creation --------------------------------------------------------------------- -- Title with background local TitleBar = Instance.new("Frame") TitleBar.Size = UDim2.new(1, 0, 0, 50) TitleBar.BackgroundColor3 = Color3.fromRGB(200, 0, 0) TitleBar.Parent = MainFrame local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -20, 1, 0) Title.Position = UDim2.new(0, 10, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "CoolGUI V2 by Rylan" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 28 Title.Font = Enum.Font.SourceSansBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = TitleBar -- Close button local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 30, 0, 30) CloseBtn.Position = UDim2.new(1, -35, 0, 10) CloseBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50) CloseBtn.Text = "X" CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255) CloseBtn.TextSize = 18 CloseBtn.Font = Enum.Font.SourceSansBold CloseBtn.Parent = TitleBar CloseBtn.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) -- Tab System local TabBar = Instance.new("Frame") TabBar.Size = UDim2.new(1, 0, 0, 40) TabBar.Position = UDim2.new(0, 0, 0, 50) TabBar.BackgroundColor3 = Color3.fromRGB(20, 20, 50) TabBar.Parent = MainFrame -- Main Tab Button local MainTabBtn = Instance.new("TextButton") MainTabBtn.Size = UDim2.new(0, 150, 1, 0) MainTabBtn.Position = UDim2.new(0, 0, 0, 0) MainTabBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) MainTabBtn.Text = "🏠 MAIN CHEATS" MainTabBtn.TextColor3 = Color3.fromRGB(255, 255, 255) MainTabBtn.TextSize = 14 MainTabBtn.Font = Enum.Font.SourceSansBold MainTabBtn.Parent = TabBar -- Troll Tab Button local TrollTabBtn = Instance.new("TextButton") TrollTabBtn.Size = UDim2.new(0, 150, 1, 0) TrollTabBtn.Position = UDim2.new(0, 150, 0, 0) TrollTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) TrollTabBtn.Text = "🎭 PLAYER TROLLING" TrollTabBtn.TextColor3 = Color3.fromRGB(255, 255, 255) TrollTabBtn.TextSize = 14 TrollTabBtn.Font = Enum.Font.SourceSansBold TrollTabBtn.Parent = TabBar -- Settings Tab Button local SettingsTabBtn = Instance.new("TextButton") SettingsTabBtn.Size = UDim2.new(0, 150, 1, 0) SettingsTabBtn.Position = UDim2.new(0, 300, 0, 0) SettingsTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) SettingsTabBtn.Text = "âš™ī¸ SETTINGS" SettingsTabBtn.TextColor3 = Color3.fromRGB(255, 255, 255) SettingsTabBtn.TextSize = 14 SettingsTabBtn.Font = Enum.Font.SourceSansBold SettingsTabBtn.Parent = TabBar -- Content frames for tabs local MainContent = Instance.new("ScrollingFrame") MainContent.Size = UDim2.new(1, -20, 1, -100) MainContent.Position = UDim2.new(0, 10, 0, 95) MainContent.BackgroundTransparency = 1 MainContent.ScrollBarThickness = 8 MainContent.CanvasSize = UDim2.new(0, 0, 0, 800) MainContent.Visible = true MainContent.Parent = MainFrame local TrollContent = Instance.new("ScrollingFrame") TrollContent.Size = UDim2.new(1, -20, 1, -100) TrollContent.Position = UDim2.new(0, 10, 0, 95) TrollContent.BackgroundTransparency = 1 TrollContent.ScrollBarThickness = 8 TrollContent.CanvasSize = UDim2.new(0, 0, 0, 600) TrollContent.Visible = false TrollContent.Parent = MainFrame local SettingsContent = Instance.new("ScrollingFrame") SettingsContent.Size = UDim2.new(1, -20, 1, -100) SettingsContent.Position = UDim2.new(0, 10, 0, 95) SettingsContent.BackgroundTransparency = 1 SettingsContent.ScrollBarThickness = 8 SettingsContent.CanvasSize = UDim2.new(0, 0, 0, 400) SettingsContent.Visible = false SettingsContent.Parent = MainFrame -- Tab switching MainTabBtn.MouseButton1Click:Connect(function() MainContent.Visible = true TrollContent.Visible = false SettingsContent.Visible = false MainTabBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) TrollTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) SettingsTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) end) TrollTabBtn.MouseButton1Click:Connect(function() MainContent.Visible = false TrollContent.Visible = true SettingsContent.Visible = false TrollTabBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) MainTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) SettingsTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) end) SettingsTabBtn.MouseButton1Click:Connect(function() MainContent.Visible = false TrollContent.Visible = false SettingsContent.Visible = true SettingsTabBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) MainTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) TrollTabBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80) end) --------------------------------------------------------------------- -- Helper Functions for UI Creation --------------------------------------------------------------------- local function CreateSection(parent, title, y, color) local section = Instance.new("Frame") section.Size = UDim2.new(1, 0, 0, 30) section.Position = UDim2.new(0, 0, 0, y) section.BackgroundColor3 = color or Color3.fromRGB(200, 0, 0) section.BackgroundTransparency = 0.3 section.Parent = parent local label = Instance.new("TextLabel") label.Size = UDim2.new(1, -10, 1, 0) label.Position = UDim2.new(0, 5, 0, 0) label.BackgroundTransparency = 1 label.Text = title label.TextColor3 = Color3.fromRGB(255, 255, 255) label.TextSize = 16 label.Font = Enum.Font.SourceSansBold label.TextXAlignment = Enum.TextXAlignment.Left label.Parent = section return section end local function CreateButton(parent, text, x, y, sizeX, sizeY, color) local Button = Instance.new("TextButton") Button.Size = UDim2.new(0, sizeX, 0, sizeY) Button.Position = UDim2.new(0, x, 0, y) Button.BackgroundColor3 = Color3.fromRGB(30, 30, 60) Button.BorderSizePixel = 1 Button.BorderColor3 = color or Color3.fromRGB(255, 0, 0) Button.Text = text Button.TextColor3 = color or Color3.fromRGB(255, 0, 0) Button.TextSize = 18 Button.Font = Enum.Font.SourceSansBold Button.TextXAlignment = Enum.TextXAlignment.Center Button.Parent = parent return Button end local function CreateInputField(parent, placeholder, x, y, sizeX, sizeY) local Box = Instance.new("TextBox") Box.Size = UDim2.new(0, sizeX, 0, sizeY) Box.Position = UDim2.new(0, x, 0, y) Box.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Box.TextColor3 = Color3.fromRGB(0, 0, 0) Box.Text = placeholder Box.TextSize = 16 Box.Font = Enum.Font.SourceSans Box.Parent = parent return Box end local function CreateLabel(parent, text, x, y, sizeX, sizeY, color) local Label = Instance.new("TextLabel") Label.Size = UDim2.new(0, sizeX, 0, sizeY) Label.Position = UDim2.new(0, x, 0, y) Label.BackgroundTransparency = 1 Label.Text = text Label.TextColor3 = color or Color3.fromRGB(200, 200, 200) Label.TextSize = 14 Label.Font = Enum.Font.SourceSans Label.TextXAlignment = Enum.TextXAlignment.Left Label.Parent = parent return Label end --------------------------------------------------------------------- -- MAIN TAB CONTENT --------------------------------------------------------------------- -- Section 1: Movement CreateSection(MainContent, "🏃 MOVEMENT", 0, Color3.fromRGB(0, 200, 255)) local FlyBtn = CreateButton(MainContent, "âœˆī¸ Fly WASD", 15, 40, 220, 40) local ResetBtn = CreateButton(MainContent, "🔄 Turn off Cheats", 260, 40, 220, 40) -- Fly Speed Controls CreateLabel(MainContent, "âœˆī¸ Fly Speed:", 15, 95, 150, 30) local FlySpeedInput = CreateInputField(MainContent, "50", 170, 95, 100, 30) local FlySpeedLabel = CreateLabel(MainContent, "Default: 50", 280, 95, 200, 30, Color3.fromRGB(150, 150, 150)) -- Walkspeed Controls local SpeedBtn = CreateButton(MainContent, "⚡ Walkspeed", 15, 140, 220, 40) local SpeedInput = CreateInputField(MainContent, "Enter Speed (16 default)", 260, 140, 220, 40) -- Section 2: Visual CreateSection(MainContent, "đŸ‘ī¸ VISUAL", 200, Color3.fromRGB(200, 0, 255)) local ESPBtn = CreateButton(MainContent, "👤 Player ESP", 15, 240, 220, 40) local NoclipBtn = CreateButton(MainContent, "đŸ‘ģ Noclip", 260, 240, 220, 40) -- Section 3: Teleport CreateSection(MainContent, "📌 TELEPORT", 300, Color3.fromRGB(255, 200, 0)) local TeleportBtn = CreateButton(MainContent, "đŸŽ¯ Teleport to Player", 15, 340, 220, 40) local TeleportInput = CreateInputField(MainContent, "Enter Player Username", 260, 340, 220, 40) local TeleportLabel = CreateLabel(MainContent, "Type a player's username above, then click Teleport", 15, 385, 470, 25) -- Section 4: Keybind Configuration CreateSection(MainContent, "âŒ¨ī¸ KEYBIND CONFIG", 425, Color3.fromRGB(0, 255, 100)) CreateLabel(MainContent, "Press a key to set bind for each cheat:", 15, 465, 470, 25) -- Fly keybind CreateLabel(MainContent, "âœˆī¸ Fly Toggle Key:", 15, 495, 150, 30) local FlyKeyInput = Instance.new("TextBox") FlyKeyInput.Size = UDim2.new(0, 100, 0, 30) FlyKeyInput.Position = UDim2.new(0, 170, 0, 495) FlyKeyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 80) FlyKeyInput.TextColor3 = Color3.fromRGB(255, 255, 255) FlyKeyInput.Text = "F" FlyKeyInput.TextSize = 16 FlyKeyInput.Font = Enum.Font.SourceSansBold FlyKeyInput.Parent = MainContent -- ESP keybind CreateLabel(MainContent, "👤 ESP Toggle Key:", 15, 535, 150, 30) local ESPKeyInput = Instance.new("TextBox") ESPKeyInput.Size = UDim2.new(0, 100, 0, 30) ESPKeyInput.Position = UDim2.new(0, 170, 0, 535) ESPKeyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 80) ESPKeyInput.TextColor3 = Color3.fromRGB(255, 255, 255) ESPKeyInput.Text = "E" ESPKeyInput.TextSize = 16 ESPKeyInput.Font = Enum.Font.SourceSansBold ESPKeyInput.Parent = MainContent -- Noclip keybind CreateLabel(MainContent, "đŸ‘ģ Noclip Toggle Key:", 15, 575, 150, 30) local NoclipKeyInput = Instance.new("TextBox") NoclipKeyInput.Size = UDim2.new(0, 100, 0, 30) NoclipKeyInput.Position = UDim2.new(0, 170, 0, 575) NoclipKeyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 80) NoclipKeyInput.TextColor3 = Color3.fromRGB(255, 255, 255) NoclipKeyInput.Text = "N" NoclipKeyInput.TextSize = 16 NoclipKeyInput.Font = Enum.Font.SourceSansBold NoclipKeyInput.Parent = MainContent -- Speed boost keybind CreateLabel(MainContent, "⚡ Speed Boost Key:", 15, 615, 150, 30) local SpeedKeyInput = Instance.new("TextBox") SpeedKeyInput.Size = UDim2.new(0, 100, 0, 30) SpeedKeyInput.Position = UDim2.new(0, 170, 0, 615) SpeedKeyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 80) SpeedKeyInput.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedKeyInput.Text = "B" SpeedKeyInput.TextSize = 16 SpeedKeyInput.Font = Enum.Font.SourceSansBold SpeedKeyInput.Parent = MainContent -- Teleport keybind CreateLabel(MainContent, "đŸŽ¯ Teleport Key:", 15, 655, 150, 30) local TeleportKeyInput = Instance.new("TextBox") TeleportKeyInput.Size = UDim2.new(0, 100, 0, 30) TeleportKeyInput.Position = UDim2.new(0, 170, 0, 655) TeleportKeyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 80) TeleportKeyInput.TextColor3 = Color3.fromRGB(255, 255, 255) TeleportKeyInput.Text = "T" TeleportKeyInput.TextSize = 16 TeleportKeyInput.Font = Enum.Font.SourceSansBold TeleportKeyInput.Parent = MainContent -- Reset keybind CreateLabel(MainContent, "🔄 Reset Cheats Key:", 15, 695, 150, 30) local ResetKeyInput = Instance.new("TextBox") ResetKeyInput.Size = UDim2.new(0, 100, 0, 30) ResetKeyInput.Position = UDim2.new(0, 170, 0, 695) ResetKeyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 80) ResetKeyInput.TextColor3 = Color3.fromRGB(255, 255, 255) ResetKeyInput.Text = "R" ResetKeyInput.TextSize = 16 ResetKeyInput.Font = Enum.Font.SourceSansBold ResetKeyInput.Parent = MainContent -- Keybind helper text CreateLabel(MainContent, "Click any keybind box above, then press the key you want to use", 15, 740, 470, 30) --------------------------------------------------------------------- -- SETTINGS TAB CONTENT --------------------------------------------------------------------- CreateSection(SettingsContent, "âš™ī¸ FLY SPEED SETTINGS", 0, Color3.fromRGB(0, 200, 255)) CreateLabel(SettingsContent, "Adjust your fly speed:", 15, 40, 470, 30) local FlySpeedSettingsInput = CreateInputField(SettingsContent, "50", 15, 75, 200, 40) local SetFlySpeedBtn = CreateButton(SettingsContent, "✅ SET FLY SPEED", 230, 75, 250, 40, Color3.fromRGB(0, 200, 255)) local FlySpeedSettingsLabel = CreateLabel(SettingsContent, "Current Fly Speed: 50", 15, 120, 470, 30, Color3.fromRGB(0, 255, 100)) CreateSection(SettingsContent, "📊 INFO", 170, Color3.fromRGB(255, 200, 0)) CreateLabel(SettingsContent, "CoolGUI V2 by Rylan", 15, 210, 470, 30, Color3.fromRGB(255, 200, 0)) CreateLabel(SettingsContent, "Key: COOLGUIV2", 15, 240, 470, 30, Color3.fromRGB(255, 200, 0)) CreateLabel(SettingsContent, "Press RightControl to toggle UI", 15, 270, 470, 30, Color3.fromRGB(200, 200, 200)) CreateLabel(SettingsContent, "All keybinds are customizable in Main tab", 15, 300, 470, 30, Color3.fromRGB(200, 200, 200)) --------------------------------------------------------------------- -- TROLL TAB CONTENT --------------------------------------------------------------------- -- Target Selection Section CreateSection(TrollContent, "đŸŽ¯ SELECT TARGET", 0, Color3.fromRGB(255, 200, 0)) local TargetInput = CreateInputField(TrollContent, "Enter Target Player Username", 15, 40, 470, 40) local TargetStatus = CreateLabel(TrollContent, "No target selected", 15, 85, 470, 25, Color3.fromRGB(255, 100, 100)) -- Set Target Button local SetTargetBtn = CreateButton(TrollContent, "đŸŽ¯ SET TARGET", 15, 115, 220, 40, Color3.fromRGB(255, 200, 0)) local ClearTargetBtn = CreateButton(TrollContent, "❌ CLEAR TARGET", 260, 115, 220, 40, Color3.fromRGB(255, 50, 50)) -- Target Info Display local TargetInfo = Instance.new("Frame") TargetInfo.Size = UDim2.new(1, -30, 0, 40) TargetInfo.Position = UDim2.new(0, 15, 0, 165) TargetInfo.BackgroundColor3 = Color3.fromRGB(30, 30, 60) TargetInfo.BorderSizePixel = 1 TargetInfo.BorderColor3 = Color3.fromRGB(255, 200, 0) TargetInfo.Parent = TrollContent local TargetNameLabel = Instance.new("TextLabel") TargetNameLabel.Size = UDim2.new(0, 200, 1, 0) TargetNameLabel.Position = UDim2.new(0, 10, 0, 0) TargetNameLabel.BackgroundTransparency = 1 TargetNameLabel.Text = "Target: None" TargetNameLabel.TextColor3 = Color3.fromRGB(255, 200, 0) TargetNameLabel.TextSize = 16 TargetNameLabel.Font = Enum.Font.SourceSansBold TargetNameLabel.TextXAlignment = Enum.TextXAlignment.Left TargetNameLabel.Parent = TargetInfo local TargetHealthLabel = Instance.new("TextLabel") TargetHealthLabel.Size = UDim2.new(0, 150, 1, 0) TargetHealthLabel.Position = UDim2.new(0, 220, 0, 0) TargetHealthLabel.BackgroundTransparency = 1 TargetHealthLabel.Text = "HP: --" TargetHealthLabel.TextColor3 = Color3.fromRGB(0, 255, 0) TargetHealthLabel.TextSize = 14 TargetHealthLabel.Font = Enum.Font.SourceSans TargetHealthLabel.TextXAlignment = Enum.TextXAlignment.Left TargetHealthLabel.Parent = TargetInfo local TargetDistanceLabel = Instance.new("TextLabel") TargetDistanceLabel.Size = UDim2.new(0, 150, 1, 0) TargetDistanceLabel.Position = UDim2.new(0, 350, 0, 0) TargetDistanceLabel.BackgroundTransparency = 1 TargetDistanceLabel.Text = "Dist: --" TargetDistanceLabel.TextColor3 = Color3.fromRGB(200, 200, 200) TargetDistanceLabel.TextSize = 14 TargetDistanceLabel.Font = Enum.Font.SourceSans TargetDistanceLabel.TextXAlignment = Enum.TextXAlignment.Left TargetDistanceLabel.Parent = TargetInfo -- Trolling Actions Section CreateSection(TrollContent, "🎭 TROLLING ACTIONS", 215, Color3.fromRGB(255, 0, 100)) -- Fling Section local FlingBtn = CreateButton(TrollContent, "🌀 FLING TARGET", 15, 255, 220, 50, Color3.fromRGB(255, 0, 100)) local StopFlingBtn = CreateButton(TrollContent, "âšī¸ STOP FLING", 260, 255, 220, 50, Color3.fromRGB(100, 100, 100)) local FlingStatus = CreateLabel(TrollContent, "Ready to fling", 15, 310, 470, 25, Color3.fromRGB(200, 200, 200)) -- Other Troll Actions local SpinBtn = CreateButton(TrollContent, "🔄 SPIN TARGET", 15, 345, 220, 40, Color3.fromRGB(255, 100, 0)) local LaunchBtn = CreateButton(TrollContent, "🚀 LAUNCH TARGET", 260, 345, 220, 40, Color3.fromRGB(255, 100, 0)) local FreezeBtn = CreateButton(TrollContent, "â„ī¸ FREEZE TARGET", 15, 400, 220, 40, Color3.fromRGB(0, 200, 255)) local UnfreezeBtn = CreateButton(TrollContent, "đŸ”Ĩ UNFREEZE TARGET", 260, 400, 220, 40, Color3.fromRGB(0, 200, 255)) local ExplodeBtn = CreateButton(TrollContent, "đŸ’Ĩ EXPLODE TARGET", 15, 455, 220, 40, Color3.fromRGB(255, 50, 50)) local ResetTrollBtn = CreateButton(TrollContent, "🔄 RESET TARGET", 260, 455, 220, 40, Color3.fromRGB(100, 100, 100)) --------------------------------------------------------------------- -- TARGET SYSTEM --------------------------------------------------------------------- local targetPlayer = nil local isFlinging = false local flingConnection = nil local function UpdateTargetInfo() if targetPlayer then TargetNameLabel.Text = "Target: " .. targetPlayer.Name -- Update health if targetPlayer.Character then local humanoid = targetPlayer.Character:FindFirstChildOfClass("Humanoid") if humanoid then TargetHealthLabel.Text = "HP: " .. math.floor(humanoid.Health) .. "/" .. math.floor(humanoid.MaxHealth) TargetHealthLabel.TextColor3 = humanoid.Health > 50 and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0) end end -- Update distance local myChar = LocalPlayer.Character local targetChar = targetPlayer.Character if myChar and targetChar then local myRoot = myChar:FindFirstChild("HumanoidRootPart") local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if myRoot and targetRoot then local dist = (myRoot.Position - targetRoot.Position).Magnitude TargetDistanceLabel.Text = "Dist: " .. math.floor(dist) .. " studs" end end else TargetNameLabel.Text = "Target: None" TargetHealthLabel.Text = "HP: --" TargetDistanceLabel.Text = "Dist: --" end end -- Update target info every second task.spawn(function() while true do task.wait(1) UpdateTargetInfo() end end) local function SetTarget() local targetName = TargetInput.Text if targetName == "" or targetName == "Enter Target Player Username" then TargetStatus.Text = "❌ Please enter a username!" TargetStatus.TextColor3 = Color3.fromRGB(255, 100, 100) return end local player = Players:FindFirstChild(targetName) if not player then TargetStatus.Text = "❌ Player '" .. targetName .. "' not found!" TargetStatus.TextColor3 = Color3.fromRGB(255, 100, 100) return end if player == LocalPlayer then TargetStatus.Text = "❌ You cannot target yourself!" TargetStatus.TextColor3 = Color3.fromRGB(255, 100, 100) return end targetPlayer = player TargetStatus.Text = "✅ Target set to: " .. player.Name TargetStatus.TextColor3 = Color3.fromRGB(0, 255, 0) UpdateTargetInfo() end local function ClearTarget() targetPlayer = nil TargetStatus.Text = "Target cleared" TargetStatus.TextColor3 = Color3.fromRGB(255, 100, 100) UpdateTargetInfo() -- Stop fling if active if isFlinging then StopFling() end end SetTargetBtn.MouseButton1Click:Connect(SetTarget) ClearTargetBtn.MouseButton1Click:Connect(ClearTarget) -- Also set target when pressing Enter in input TargetInput.FocusLost:Connect(function(enterPressed) if enterPressed then SetTarget() end end) --------------------------------------------------------------------- -- FLING SYSTEM --------------------------------------------------------------------- local function StopFling() isFlinging = false if flingConnection then flingConnection:Disconnect() flingConnection = nil end -- Stop spinning local myChar = LocalPlayer.Character if myChar then local rootPart = myChar:FindFirstChild("HumanoidRootPart") if rootPart then rootPart.CFrame = CFrame.new(rootPart.Position) end end FlingBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 60) FlingBtn.TextColor3 = Color3.fromRGB(255, 0, 100) StopFlingBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100) FlingStatus.Text = "Fling stopped" FlingStatus.TextColor3 = Color3.fromRGB(200, 200, 200) end local function StartFling() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" FlingStatus.TextColor3 = Color3.fromRGB(255, 100, 100) return end if isFlinging then StopFling() return end local targetChar = targetPlayer.Character if not targetChar then FlingStatus.Text = "❌ Target has no character!" FlingStatus.TextColor3 = Color3.fromRGB(255, 100, 100) return end local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not targetRoot then FlingStatus.Text = "❌ Cannot find target's root part!" FlingStatus.TextColor3 = Color3.fromRGB(255, 100, 100) return end local myChar = LocalPlayer.Character if not myChar then FlingStatus.Text = "❌ You don't have a character!" return end local myRoot = myChar:FindFirstChild("HumanoidRootPart") if not myRoot then FlingStatus.Text = "❌ Cannot find your root part!" return end isFlinging = true FlingBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 0) FlingBtn.TextColor3 = Color3.fromRGB(255, 255, 255) StopFlingBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) FlingStatus.Text = "🌀 Flinging " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(0, 255, 0) -- Teleport to target first myRoot.CFrame = targetRoot.CFrame + Vector3.new(0, 3, 0) -- Start spinning and flinging local angle = 0 flingConnection = RunService.RenderStepped:Connect(function() if not isFlinging or not targetPlayer or not targetPlayer.Character or not myChar.Parent then StopFling() return end targetRoot = targetPlayer.Character:FindFirstChild("HumanoidRootPart") myRoot = myChar:FindFirstChild("HumanoidRootPart") if not targetRoot or not myRoot then StopFling() return end -- Spin at high speed angle = angle + 0.5 if angle > math.pi * 2 then angle = 0 end -- Create spinning effect local spinCFrame = CFrame.new(myRoot.Position) * CFrame.Angles(0, angle * 10, 0) myRoot.CFrame = spinCFrame -- Apply velocity to fling the target local flingDirection = (targetRoot.Position - myRoot.Position).Unit targetRoot.Velocity = flingDirection * 200 + Vector3.new(0, 50, 0) -- Keep close to target myRoot.CFrame = targetRoot.CFrame + Vector3.new(0, 3, 0) * CFrame.Angles(0, angle * 5, 0) end) end FlingBtn.MouseButton1Click:Connect(StartFling) StopFlingBtn.MouseButton1Click:Connect(StopFling) --------------------------------------------------------------------- -- OTHER TROLL ACTIONS --------------------------------------------------------------------- -- Spin Target local function SpinTarget() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" return end local targetChar = targetPlayer.Character if not targetChar then return end local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not targetRoot then return end -- Spin the target task.spawn(function() local startTime = tick() while tick() - startTime < 5 and targetRoot.Parent do targetRoot.CFrame = targetRoot.CFrame * CFrame.Angles(0, 0.5, 0) RunService.RenderStepped:Wait() end end) FlingStatus.Text = "🔄 Spinning " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(255, 100, 0) end -- Launch Target local function LaunchTarget() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" return end local targetChar = targetPlayer.Character if not targetChar then return end local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not targetRoot then return end -- Launch them upward targetRoot.Velocity = Vector3.new(0, 500, 0) FlingStatus.Text = "🚀 Launched " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(255, 100, 0) end -- Freeze Target local function FreezeTarget() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" return end local targetChar = targetPlayer.Character if not targetChar then return end for _, part in ipairs(targetChar:GetDescendants()) do if part:IsA("BasePart") then part.Anchored = true end end local humanoid = targetChar:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.PlatformStand = true end FlingStatus.Text = "â„ī¸ Frozen " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(0, 200, 255) end -- Unfreeze Target local function UnfreezeTarget() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" return end local targetChar = targetPlayer.Character if not targetChar then return end for _, part in ipairs(targetChar:GetDescendants()) do if part:IsA("BasePart") then part.Anchored = false end end local humanoid = targetChar:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.PlatformStand = false end FlingStatus.Text = "đŸ”Ĩ Unfrozen " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(0, 200, 255) end -- Explode Target local function ExplodeTarget() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" return end local targetChar = targetPlayer.Character if not targetChar then return end local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not targetRoot then return end -- Create explosion local explosion = Instance.new("Explosion") explosion.BlastRadius = 10 explosion.BlastPressure = 500000 explosion.DestroyJointRadiusPercent = 1 explosion.Position = targetRoot.Position explosion.Parent = Workspace FlingStatus.Text = "đŸ’Ĩ Exploded " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(255, 50, 50) end -- Reset Target local function ResetTarget() if not targetPlayer then FlingStatus.Text = "❌ No target selected!" return end local targetChar = targetPlayer.Character if not targetChar then return end -- Reset all parts for _, part in ipairs(targetChar:GetDescendants()) do if part:IsA("BasePart") then part.Anchored = false part.Velocity = Vector3.new(0, 0, 0) end end local humanoid = targetChar:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.PlatformStand = false humanoid.WalkSpeed = 16 humanoid.JumpPower = 50 end FlingStatus.Text = "🔄 Reset " .. targetPlayer.Name .. "!" FlingStatus.TextColor3 = Color3.fromRGB(100, 100, 100) end -- Connect troll buttons SpinBtn.MouseButton1Click:Connect(SpinTarget) LaunchBtn.MouseButton1Click:Connect(LaunchTarget) FreezeBtn.MouseButton1Click:Connect(FreezeTarget) UnfreezeBtn.MouseButton1Click:Connect(UnfreezeTarget) ExplodeBtn.MouseButton1Click:Connect(ExplodeTarget) ResetTrollBtn.MouseButton1Click:Connect(ResetTarget) --------------------------------------------------------------------- -- MAIN TAB SCRIPT FEATURES --------------------------------------------------------------------- local IsFlying = false local IsEspOn = false local IsNoclipOn = false local FlySpeed = 50 -- Function to convert key text to Enum.KeyCode local function GetKeyCode(keyText) local keyMap = { ["A"] = Enum.KeyCode.A, ["B"] = Enum.KeyCode.B, ["C"] = Enum.KeyCode.C, ["D"] = Enum.KeyCode.D, ["E"] = Enum.KeyCode.E, ["F"] = Enum.KeyCode.F, ["G"] = Enum.KeyCode.G, ["H"] = Enum.KeyCode.H, ["I"] = Enum.KeyCode.I, ["J"] = Enum.KeyCode.J, ["K"] = Enum.KeyCode.K, ["L"] = Enum.KeyCode.L, ["M"] = Enum.KeyCode.M, ["N"] = Enum.KeyCode.N, ["O"] = Enum.KeyCode.O, ["P"] = Enum.KeyCode.P, ["Q"] = Enum.KeyCode.Q, ["R"] = Enum.KeyCode.R, ["S"] = Enum.KeyCode.S, ["T"] = Enum.KeyCode.T, ["U"] = Enum.KeyCode.U, ["V"] = Enum.KeyCode.V, ["W"] = Enum.KeyCode.W, ["X"] = Enum.KeyCode.X, ["Y"] = Enum.KeyCode.Y, ["Z"] = Enum.KeyCode.Z, ["0"] = Enum.KeyCode.Zero, ["1"] = Enum.KeyCode.One, ["2"] = Enum.KeyCode.Two, ["3"] = Enum.KeyCode.Three, ["4"] = Enum.KeyCode.Four, ["5"] = Enum.KeyCode.Five, ["6"] = Enum.KeyCode.Six, ["7"] = Enum.KeyCode.Seven, ["8"] = Enum.KeyCode.Eight, ["9"] = Enum.KeyCode.Nine, ["Space"] = Enum.KeyCode.Space, ["LeftShift"] = Enum.KeyCode.LeftShift, ["RightShift"] = Enum.KeyCode.RightShift, ["LeftControl"] = Enum.KeyCode.LeftControl, ["RightControl"] = Enum.KeyCode.RightControl, ["LeftAlt"] = Enum.KeyCode.LeftAlt, ["RightAlt"] = Enum.KeyCode.RightAlt, } return keyMap[keyText:upper()] or Enum.KeyCode.F end -- Update fly speed from input local function UpdateFlySpeed() local value = tonumber(FlySpeedInput.Text) if value and value > 0 then FlySpeed = value FlySpeedLabel.Text = "Current: " .. value FlySpeedSettingsInput.Text = tostring(value) FlySpeedSettingsLabel.Text = "Current Fly Speed: " .. value end end -- Fly speed input handlers FlySpeedInput.FocusLost:Connect(function(enterPressed) if enterPressed then UpdateFlySpeed() end end) -- Settings fly speed button SetFlySpeedBtn.MouseButton1Click:Connect(function() local value = tonumber(FlySpeedSettingsInput.Text) if value and value > 0 then FlySpeed = value FlySpeedInput.Text = tostring(value) FlySpeedLabel.Text = "Current: " .. value FlySpeedSettingsLabel.Text = "Current Fly Speed: " .. value end end) -- Feature Module A: Camera Relative WASD Flight Control local function ToggleFlight() IsFlying = not IsFlying local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local rootPart = character:WaitForChild("HumanoidRootPart") local humanoid = character:WaitForChild("Humanoid") local camera = Workspace.CurrentCamera if IsFlying then humanoid.PlatformStand = true task.spawn(function() while IsFlying and character.Parent and rootPart.Parent do RunService.RenderStepped:Wait() local moveDirection = Vector3.new(0,0,0) if UserInputService:IsKeyDown(Enum.KeyCode.W) then moveDirection = moveDirection + camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then moveDirection = moveDirection - camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then moveDirection = moveDirection - camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then moveDirection = moveDirection + camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then moveDirection = moveDirection + Vector3.new(0, 1, 0) end if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then moveDirection = moveDirection - Vector3.new(0, 1, 0) end if moveDirection.Magnitude > 0 then rootPart.Velocity = moveDirection.Unit * FlySpeed else rootPart.Velocity = Vector3.new(0, 0, 0) end end humanoid.PlatformStand = false rootPart.Velocity = Vector3.new(0,0,0) end) else if character then humanoid.PlatformStand = false if rootPart then rootPart.Velocity = Vector3.new(0,0,0) end end end end -- Feature Module B: Walkspeed Configuration local function SetWalkspeed(speed) local character = LocalPlayer.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if speed and humanoid then humanoid.WalkSpeed = speed end end SpeedInput.FocusLost:Connect(function(enterPressed) if enterPressed then local value = tonumber(SpeedInput.Text) SetWalkspeed(value) end end) SpeedBtn.MouseButton1Click:Connect(function() local value = tonumber(SpeedInput.Text) SetWalkspeed(value) end) -- Feature Module C: Highlight-Based Player ESP local function ApplyHighlight(targetPlayer) if targetPlayer == LocalPlayer then return end local function AddGraphic(char) if not char:FindFirstChild("RylanHighlight") then local highlight = Instance.new("Highlight") highlight.Name = "RylanHighlight" highlight.Adornee = char highlight.FillColor = Color3.fromRGB(255, 0, 0) highlight.FillTransparency = 0.5 highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.Enabled = IsEspOn highlight.Parent = char end end if targetPlayer.Character then AddGraphic(targetPlayer.Character) end targetPlayer.CharacterAdded:Connect(AddGraphic) end local function ToggleESP() IsEspOn = not IsEspOn for _, target in ipairs(Players:GetPlayers()) do if target.Character and target.Character:FindFirstChild("RylanHighlight") then target.Character.RylanHighlight.Enabled = IsEspOn end end end -- Feature Module D: Noclip Engine Loop local function ToggleNoclip() IsNoclipOn = not IsNoclipOn if IsNoclipOn then task.spawn(function() while IsNoclipOn do RunService.Stepped:Wait() local character = LocalPlayer.Character if character then for _, limb in ipairs(character:GetChildren()) do if limb:IsA("BasePart") then limb.CanCollide = false end end end end end) end end -- Feature Module E: Teleport to Player local function TeleportToPlayer() local targetName = TeleportInput.Text if targetName == "" or targetName == "Enter Player Username" then TeleportLabel.Text = "❌ Please enter a player username first!" task.wait(2) TeleportLabel.Text = "Type a player's username above, then click Teleport" return end local targetPlayer = Players:FindFirstChild(targetName) if not targetPlayer then TeleportLabel.Text = "❌ Player '" .. targetName .. "' not found!" task.wait(2) TeleportLabel.Text = "Type a player's username above, then click Teleport" return end local targetChar = targetPlayer.Character if not targetChar then TeleportLabel.Text = "❌ Player has no character!" task.wait(2) TeleportLabel.Text = "Type a player's username above, then click Teleport" return end local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not targetRoot then TeleportLabel.Text = "❌ Cannot find player's root part!" task.wait(2) TeleportLabel.Text = "Type a player's username above, then click Teleport" return end local myChar = LocalPlayer.Character if not myChar then TeleportLabel.Text = "❌ You don't have a character!" return end local myRoot = myChar:FindFirstChild("HumanoidRootPart") if myRoot then myRoot.CFrame = targetRoot.CFrame + Vector3.new(0, 5, 0) TeleportLabel.Text = "✅ Teleported to " .. targetName .. "!" task.wait(2) TeleportLabel.Text = "Type a player's username above, then click Teleport" end end -- Feature Module F: General Reset Button System local function TurnOffCheats() IsFlying = false IsNoclipOn = false if IsEspOn then ToggleESP() end local character = LocalPlayer.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = 16 end -- Reset character if flying if character then local rootPart = character:FindFirstChild("HumanoidRootPart") if rootPart then rootPart.Velocity = Vector3.new(0, 0, 0) end local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.PlatformStand = false end end end --------------------------------------------------------------------- -- Keybind System --------------------------------------------------------------------- -- Store current keybinds local keybinds = { Fly = "F", ESP = "E", Noclip = "N", Speed = "B", Teleport = "T", Reset = "R" } -- Function to set keybind on input box click local function SetupKeybindInput(inputBox, bindName) inputBox.Focused:Connect(function() inputBox.Text = "..." end) inputBox.FocusLost:Connect(function(enterPressed) if enterPressed then local key = inputBox.Text:upper() if #key == 1 or key == "SPACE" or key == "LEFTSHIFT" or key == "RIGHTSHIFT" or key == "LEFTCONTROL" or key == "RIGHTCONTROL" or key == "LEFTALT" or key == "RIGHTALT" then keybinds[bindName] = key inputBox.Text = key else inputBox.Text = keybinds[bindName] end else inputBox.Text = keybinds[bindName] end end) end -- Setup keybind inputs SetupKeybindInput(FlyKeyInput, "Fly") SetupKeybindInput(ESPKeyInput, "ESP") SetupKeybindInput(NoclipKeyInput, "Noclip") SetupKeybindInput(SpeedKeyInput, "Speed") SetupKeybindInput(TeleportKeyInput, "Teleport") SetupKeybindInput(ResetKeyInput, "Reset") -- Global keybind listener UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if not MainFrame.Visible and not KeyFrame.Visible then return end local key = input.KeyCode -- Check each keybind for bindName, bindKey in pairs(keybinds) do local bindKeyCode = GetKeyCode(bindKey) if key == bindKeyCode then if bindName == "Fly" then ToggleFlight() elseif bindName == "ESP" then ToggleESP() elseif bindName == "Noclip" then ToggleNoclip() elseif bindName == "Speed" then local value = tonumber(SpeedInput.Text) SetWalkspeed(value or 50) elseif bindName == "Teleport" then TeleportToPlayer() elseif bindName == "Reset" then TurnOffCheats() end end end end) --------------------------------------------------------------------- -- Global Track Initializers --------------------------------------------------------------------- for _, p in ipairs(Players:GetPlayers()) do ApplyHighlight(p) end Players.PlayerAdded:Connect(ApplyHighlight) --------------------------------------------------------------------- -- UI Interaction Mapping hooks --------------------------------------------------------------------- FlyBtn.MouseButton1Click:Connect(ToggleFlight) ESPBtn.MouseButton1Click:Connect(ToggleESP) NoclipBtn.MouseButton1Click:Connect(ToggleNoclip) TeleportBtn.MouseButton1Click:Connect(TeleportToPlayer) ResetBtn.MouseButton1Click:Connect(TurnOffCheats) --------------------------------------------------------------------- -- Notification --------------------------------------------------------------------- local notification = Instance.new("TextLabel") notification.Size = UDim2.new(0, 500, 0, 60) notification.Position = UDim2.new(0.5, -250, 0, 10) notification.BackgroundColor3 = Color3.fromRGB(200, 0, 0) notification.BackgroundTransparency = 0.1 notification.Text = "đŸ”Ĩ CoolGUI V2 by Rylan LOADED!\nPress RightControl to toggle | Key: COOLGUIV2" notification.TextColor3 = Color3.fromRGB(255, 255, 255) notification.TextSize = 16 notification.Font = Enum.Font.SourceSansBold notification.Parent = ScreenGui -- Fade out notification task.wait(4) local tween = game:GetService("TweenService"):Create(notification, TweenInfo.new(1), {BackgroundTransparency = 1, TextTransparency = 1}) tween:Play() tween.Completed:Connect(function() notification:Destroy() end)