local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:FindFirstChildOfClass("Humanoid")
local root = char:FindFirstChild("HumanoidRootPart")
local uis = game:GetService("UserInputService")
local run = game:GetService("RunService")
-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "PowerMenu"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.fromScale(0.25, 0.6)
frame.Position = UDim2.fromScale(0.05, 0.2)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.BorderSizePixel = 0
Instance.new("UICorner", frame).CornerRadius = UDim.new(0,12)
-- STATES
local fly = false
local speed = false
local noclip = false
local invis = false
local infHealth = false
local infJump = false
local esp = false
local normalSpeed = hum.WalkSpeed
local bv
-- BUTTON MAKER
local function makeButton(text, y, func)
local b = Instance.new("TextButton", frame)
b.Size = UDim2.fromScale(1, 0.11)
b.Position = UDim2.fromScale(0, y)
b.Text = text
b.TextScaled = true
b.BackgroundColor3 = Color3.fromRGB(40,40,40)
b.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", b).CornerRadius = UDim.new(0,8)
b.MouseButton1Click:Connect(func)
end
-- FLY
makeButton("Fly", 0.02, function()
fly = not fly
if fly then
bv = Instance.new("BodyVelocity", root)
bv.MaxForce = Vector3.new(1e5,1e5,1e5)
else
if bv then bv:Destroy() end
end
end)
run.RenderStepped:Connect(function()
if fly and bv then
bv.Velocity = workspace.CurrentCamera.CFrame.LookVector * 60
end
end)
-- SPEED
makeButton("Speed Boost", 0.15, function()
speed = not speed
hum.WalkSpeed = speed and 60 or normalSpeed
end)
-- NOCLIP
makeButton("Noclip", 0.28, function()
noclip = not noclip
end)
run.Stepped:Connect(function()
if noclip then
for _, v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") then
v.CanCollide = false
end
end
end
end)
-- INVISIBILITY
makeButton("Invisibility", 0.41, function()
invis = not invis
for _, v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") then
v.Transparency = invis and 1 or 0
end
end
end)
-- INFINITE HEALTH
makeButton("Infinite Health", 0.54, function()
infHealth = not infHealth
end)
run.Heartbeat:Connect(function()
if infHealth then
hum.Health = hum.MaxHealth
end
end)
-- INFINITE JUMP
makeButton("Infinite Jump", 0.67, function()
infJump = not infJump
end)
uis.JumpRequest:Connect(function()
if infJump then
hum:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
-- ESP
makeButton("ESP", 0.80, function()
esp = not esp
for _, p in pairs(game.Players:GetPlayers()) do
if p ~= player then
local c = p.Character
if c then
local h = c:FindFirstChild("Highlight")
if esp and not h then
h = Instance.new("Highlight", c)
h.FillColor = Color3.fromRGB(255,0,0)
h.OutlineColor = Color3.new(1,1,1)
elseif not esp and h then
h:Destroy()
end
end
end
end
end)
Comments
No comments yet
Be the first to share your thoughts!