-- Twilight's Exploit | Version 0.1 -- Scripted by: ChatGPT -- SERVICES local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") -- PLAYER local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local root = character:WaitForChild("HumanoidRootPart") -- GUI local gui = Instance.new("ScreenGui") gui.Name = "TwilightsExploit" gui.ResetOnSpawn = false gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling gui.Parent = game:GetService("CoreGui") local frame = Instance.new("Frame") frame.Parent = gui frame.Size = UDim2.new(0, 360, 0, 430) frame.Position = UDim2.fromScale(0.35, 0.25) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) frame.BorderSizePixel = 0 frame.Active = true -- DRAGGABLE UI local dragging, dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) -- UI LABEL local function label(text, y, size, color, font) local l = Instance.new("TextLabel", frame) l.Size = UDim2.new(1, 0, 0, size) l.Position = UDim2.new(0, 0, 0, y) l.BackgroundTransparency = 1 l.Text = text l.TextColor3 = color l.TextScaled = true l.Font = font return l end label("Twilight's Exploit", 5, 40, Color3.fromRGB(170,0,255), Enum.Font.GothamBold) label("Version 0.1", 45, 25, Color3.fromRGB(200,200,200), Enum.Font.Gotham) label("Scripted by: ChatGPT", 70, 25, Color3.fromRGB(150,150,150), Enum.Font.Gotham) -- BUTTON CREATOR local function button(text, y) local b = Instance.new("TextButton", frame) b.Size = UDim2.new(0.8, 0, 0, 35) b.Position = UDim2.new(0.1, 0, 0, y) b.BackgroundColor3 = Color3.fromRGB(40,40,40) b.BorderSizePixel = 0 b.Text = text b.TextColor3 = Color3.new(1,1,1) b.TextScaled = true b.Font = Enum.Font.GothamBold return b end -- WALKSPEED TOGGLE local speedOn = false local speedBtn = button("Toggle WalkSpeed (50)", 110) speedBtn.MouseButton1Click:Connect(function() speedOn = not speedOn humanoid.WalkSpeed = speedOn and 50 or 16 end) -- JUMP BUTTON local jumpBtn = button("Jump", 155) jumpBtn.MouseButton1Click:Connect(function() humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end) -- SPIN TOGGLE local spinOn = false local spinConn local spinBtn = button("Toggle Spin", 200) spinBtn.MouseButton1Click:Connect(function() spinOn = not spinOn if spinOn then spinConn = RunService.RenderStepped:Connect(function() root.CFrame *= CFrame.Angles(0, math.rad(12), 0) end) else if spinConn then spinConn:Disconnect() end end end) -- FLY TOGGLE local flyOn = false local gyro, vel local flyBtn = button("Toggle Fly", 245) flyBtn.MouseButton1Click:Connect(function() flyOn = not flyOn if flyOn then gyro = Instance.new("BodyGyro", root) vel = Instance.new("BodyVelocity", root) gyro.MaxTorque = Vector3.new(9e9,9e9,9e9) gyro.P = 9e4 vel.MaxForce = Vector3.new(9e9,9e9,9e9) RunService.RenderStepped:Connect(function() if flyOn then gyro.CFrame = workspace.CurrentCamera.CFrame vel.Velocity = workspace.CurrentCamera.CFrame.LookVector * 50 end end) else if gyro then gyro:Destroy() end if vel then vel:Destroy() end end end) -- ESP MACHINE TOGGLE (Floor > Machines > "1") local espOn = false local highlight local espBtn = button("Toggle ESP Machine", 290) local warning = label( "Turn off this esp after passing the floor", 335, 30, Color3.fromRGB(255,100,100), Enum.Font.GothamBold ) warning.Visible = false local function getMachine() local floor = workspace:FindFirstChild("Floor") if not floor then return nil end local machines = floor:FindFirstChild("Machines") if not machines then return nil end return machines:FindFirstChild("1") end espBtn.MouseButton1Click:Connect(function() espOn = not espOn warning.Visible = espOn local machine = getMachine() if not machine then return end if espOn then highlight = Instance.new("Highlight") highlight.Parent = machine highlight.FillColor = Color3.fromRGB(255,0,0) highlight.OutlineColor = Color3.fromRGB(255,255,255) else if highlight then highlight:Destroy() end end end)