-- PowerII v3 完整整合版 local Players = game:GetService("Players") local lp = Players.LocalPlayer local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local UserSettings = UserSettings() local GameSettings = UserSettings.GameSettings local KEY = "77484784570543" ----------------------------- -- ScreenGui ----------------------------- local PlayerGui = lp:WaitForChild("PlayerGui") local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "PowerII_V3" ScreenGui.Parent = PlayerGui ----------------------------- -- Key GUI ----------------------------- local KeyFrame = Instance.new("Frame", ScreenGui) KeyFrame.Size = UDim2.new(0, 350, 0, 160) KeyFrame.Position = UDim2.new(0.5, -175, 0.4, -80) KeyFrame.BackgroundColor3 = Color3.fromRGB(15,15,15) KeyFrame.Active = true KeyFrame.Draggable = true KeyFrame.Visible = true local KeyTitle = Instance.new("TextLabel", KeyFrame) KeyTitle.Size = UDim2.new(1,0,0,35) KeyTitle.BackgroundColor3 = Color3.fromRGB(30,30,30) KeyTitle.Text = "PowerII - Enter Key" KeyTitle.TextColor3 = Color3.fromRGB(0,255,120) KeyTitle.Font = Enum.Font.GothamBold KeyTitle.TextSize = 18 local KeyBox = Instance.new("TextBox", KeyFrame) KeyBox.Size = UDim2.new(0.9,0,0,40) KeyBox.Position = UDim2.new(0.05,0,0.35,0) KeyBox.BackgroundColor3 = Color3.fromRGB(20,20,20) KeyBox.PlaceholderText = "輸入 Key" KeyBox.TextColor3 = Color3.fromRGB(255,255,255) KeyBox.ClearTextOnFocus = false local KeyBtn = Instance.new("TextButton", KeyFrame) KeyBtn.Size = UDim2.new(0.5,0,0,35) KeyBtn.Position = UDim2.new(0.25,0,0.70,0) KeyBtn.BackgroundColor3 = Color3.fromRGB(0,255,120) KeyBtn.Text = "驗證 Key" KeyBtn.Font = Enum.Font.GothamBold KeyBtn.TextSize = 16 KeyBtn.TextColor3 = Color3.fromRGB(0,0,0) ----------------------------- -- Main GUI ----------------------------- local Main = Instance.new("Frame", ScreenGui) Main.Size = UDim2.new(0, 420, 0, 400) Main.Position = UDim2.new(0.5, -210, 0.5, -200) Main.BackgroundColor3 = Color3.fromRGB(25,25,25) Main.Visible = false Main.Active = true Main.Draggable = true -- Title local Title = Instance.new("TextLabel", Main) Title.Size = UDim2.new(1,0,0,30) Title.BackgroundColor3 = Color3.fromRGB(35,35,35) Title.Text = "PowerII" Title.TextColor3 = Color3.fromRGB(0,255,120) Title.Font = Enum.Font.GothamBold Title.TextSize = 18 -- Lua CodeBox local Code = Instance.new("TextBox", Main) Code.Size = UDim2.new(1,-20,0,100) Code.Position = UDim2.new(0,10,0,40) Code.BackgroundColor3 = Color3.fromRGB(20,20,20) Code.TextColor3 = Color3.fromRGB(255,255,255) Code.MultiLine = true Code.ClearTextOnFocus = false Code.TextWrapped = true Code.PlaceholderText = "輸入 Lua 腳本..." -- Execute local Execute = Instance.new("TextButton", Main) Execute.Size = UDim2.new(0.3,0,0,35) Execute.Position = UDim2.new(0.05,0,0,150) Execute.Text = "Execute" Execute.BackgroundColor3 = Color3.fromRGB(0,170,100) Execute.TextColor3 = Color3.fromRGB(255,255,255) Execute.Font = Enum.Font.GothamBold Execute.TextSize = 16 -- Clear local Clear = Instance.new("TextButton", Main) Clear.Size = UDim2.new(0.3,0,0,35) Clear.Position = UDim2.new(0.35,0,0,150) Clear.Text = "Clear" Clear.BackgroundColor3 = Color3.fromRGB(180,0,0) Clear.TextColor3 = Color3.fromRGB(255,255,255) Clear.Font = Enum.Font.GothamBold Clear.TextSize = 16 -- Respawn local Respawn = Instance.new("TextButton", Main) Respawn.Size = UDim2.new(0.3,0,0,35) Respawn.Position = UDim2.new(0.65,0,0,150) Respawn.Text = "Respawn" Respawn.BackgroundColor3 = Color3.fromRGB(0,120,200) Respawn.TextColor3 = Color3.fromRGB(255,255,255) -- FPS Box local FPSBox = Instance.new("TextBox", Main) FPSBox.Size = UDim2.new(0.4,0,0,35) FPSBox.Position = UDim2.new(0.05,0,0,200) FPSBox.BackgroundColor3 = Color3.fromRGB(40,40,40) FPSBox.TextColor3 = Color3.fromRGB(255,255,255) FPSBox.PlaceholderText = "輸入 FPS Cap" -- Require Module local RequireBtn = Instance.new("TextButton", Main) RequireBtn.Size = UDim2.new(0.4,0,0,35) RequireBtn.Position = UDim2.new(0.55,0,0,200) RequireBtn.BackgroundColor3 = Color3.fromRGB(180,100,0) RequireBtn.Text = "Require" RequireBtn.TextColor3 = Color3.fromRGB(255,255,255) RequireBtn.Font = Enum.Font.GothamBold -- Dark / White mode local ModeBtn = Instance.new("TextButton", Main) ModeBtn.Size = UDim2.new(0.3,0,0,35) ModeBtn.Position = UDim2.new(0.05,0,0,250) ModeBtn.BackgroundColor3 = Color3.fromRGB(60,60,60) ModeBtn.Text = "Dark / White" ModeBtn.Font = Enum.Font.GothamBold ModeBtn.TextSize = 16 ModeBtn.TextColor3 = Color3.fromRGB(255,255,255) -- Fly 開關 + Speed local FlyBtn = Instance.new("TextButton", Main) FlyBtn.Size = UDim2.new(0.3,0,0,35) FlyBtn.Position = UDim2.new(0.35,0,0,250) FlyBtn.BackgroundColor3 = Color3.fromRGB(0,170,100) FlyBtn.Text = "Fly ON/OFF" FlyBtn.Font = Enum.Font.GothamBold FlyBtn.TextSize = 16 FlyBtn.TextColor3 = Color3.fromRGB(255,255,255) local SpeedBox = Instance.new("TextBox", Main) SpeedBox.Size = UDim2.new(0.3,0,0,35) SpeedBox.Position = UDim2.new(0.65,0,0,250) SpeedBox.BackgroundColor3 = Color3.fromRGB(40,40,40) SpeedBox.PlaceholderText = "Fly Speed" SpeedBox.TextColor3 = Color3.fromRGB(255,255,255) SpeedBox.ClearTextOnFocus = false -- Console 按鈕 local ConsoleBtn = Instance.new("TextButton", Main) ConsoleBtn.Size = UDim2.new(0.3,0,0,35) ConsoleBtn.Position = UDim2.new(0.35,0,0,300) ConsoleBtn.BackgroundColor3 = Color3.fromRGB(150,0,150) ConsoleBtn.Text = "Open Console" ConsoleBtn.Font = Enum.Font.GothamBold ConsoleBtn.TextSize = 16 ConsoleBtn.TextColor3 = Color3.fromRGB(255,255,255) ----------------------------- -- 功能 ----------------------------- -- Key 驗證 KeyBtn.MouseButton1Click:Connect(function() if KeyBox.Text == KEY then KeyFrame.Visible = false Main.Visible = true else KeyBox.Text = "" KeyBox.PlaceholderText = "KEY 錯誤!" Main.Visible = false KeyFrame.Visible = true end end) -- Execute / Clear Execute.MouseButton1Click:Connect(function() local f, e = loadstring(Code.Text) if f then pcall(f) else warn(e) end end) Clear.MouseButton1Click:Connect(function() Code.Text = "" end) -- Respawn Respawn.MouseButton1Click:Connect(function() if lp.Character and lp.Character:FindFirstChildOfClass("Humanoid") then lp.Character:FindFirstChildOfClass("Humanoid").Health = 0 end end) -- FPS Cap FPSBox.FocusLost:Connect(function(enterPressed) if not enterPressed then return end local fps = tonumber(FPSBox.Text) if fps then GameSettings.MaximumSimulationFPS = fps end end) -- Require Module RequireBtn.MouseButton1Click:Connect(function() local id = tonumber(Code.Text) if id then local s,r = pcall(function() return require(id) end) if s then print("Module Loaded:", r) else warn(r) end end end) -- Dark / White local Dark = true ModeBtn.MouseButton1Click:Connect(function() Dark = not Dark if Dark then Main.BackgroundColor3 = Color3.fromRGB(25,25,25) Title.TextColor3 = Color3.fromRGB(0,255,120) Code.BackgroundColor3 = Color3.fromRGB(20,20,20) else Main.BackgroundColor3 = Color3.fromRGB(255,255,255) Title.TextColor3 = Color3.fromRGB(0,0,0) Code.BackgroundColor3 = Color3.fromRGB(200,200,200) end end) -- Console ConsoleBtn.MouseButton1Click:Connect(function() lp:Chat("/console") end) -- Fly local Flying = false local FlySpeed = 4 local BodyGyro, BodyVel FlyBtn.MouseButton1Click:Connect(function() Flying = not Flying local char = lp.Character if not char or not char:FindFirstChild("HumanoidRootPart") then return end local HRP = char.HumanoidRootPart if Flying then BodyGyro = Instance.new("BodyGyro", HRP) BodyGyro.P = 5000 BodyGyro.MaxTorque = Vector3.new(9e9,9e9,9e9) BodyVel = Instance.new("BodyVelocity", HRP) BodyVel.MaxForce = Vector3.new(9e9,9e9,9e9) BodyVel.Velocity = Vector3.new(0,0,0) else if BodyGyro then BodyGyro:Destroy() end if BodyVel then BodyVel:Destroy() end end end) SpeedBox.FocusLost:Connect(function(enterPressed) if not enterPressed then return end local sp = tonumber(SpeedBox.Text) if sp and sp>0 then FlySpeed = sp end end) -- Touch / 滑桿 Fly 控制 RunService.RenderStepped:Connect(function() if not Flying then return end local char = lp.Character if not char or not char:FindFirstChild("HumanoidRootPart") then return end local HRP = char.HumanoidRootPart -- 假設 UIS.TouchEnabled = true 時使用搖桿或虛擬滑桿 (此處簡單示意) local moveDir = Vector3.new(0,0,0) if UIS:IsKeyDown(Enum.KeyCode.W) then moveDir = moveDir + Vector3.new(0,0,-1) end if UIS:IsKeyDown(Enum.KeyCode.S) then moveDir = moveDir + Vector3.new(0,0,1) end if UIS:IsKeyDown(Enum.KeyCode.A) then moveDir = moveDir + Vector3.new(-1,0,0) end if UIS:IsKeyDown(Enum.KeyCode.D) then moveDir = moveDir + Vector3.new(1,0,0) end moveDir = moveDir.Unit * FlySpeed if BodyVel then BodyVel.Velocity = moveDir end end)