Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local opened = false
- local hidekey = Enum.KeyCode.Insert
- local MadHack = Instance.new("ScreenGui")
- local Visuals = Instance.new("Frame")
- local VisualsText = Instance.new("TextLabel")
- local Tracers = Instance.new("TextButton")
- local Tracers_2 = Instance.new("TextButton")
- local Tp = Instance.new("Frame")
- local TpText = Instance.new("TextLabel")
- local Player = Instance.new("Frame")
- local PlayerText = Instance.new("TextLabel")
- local Speed = Instance.new("TextButton")
- local Gravity = Instance.new("TextButton")
- local NoClip = Instance.new("TextButton")
- local Fly = Instance.new("TextButton")
- local World = Instance.new("Frame")
- local WorldText = Instance.new("TextLabel")
- local Day = Instance.new("TextButton")
- local Night = Instance.new("TextButton")
- local NoLasers = Instance.new("TextButton")
- -- Properties
- MadHack.Name = "MadHack"
- MadHack.Parent = game.CoreGui
- MadHack.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Visuals.Name = "Visuals"
- Visuals.Parent = MadHack
- Visuals.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
- Visuals.BorderColor3 = Color3.new(1, 1, 1)
- Visuals.Position = UDim2.new(0.0490654185, 0, 0.0737051815, 0)
- Visuals.Size = UDim2.new(0, 166, 0, 226)
- Visuals.Active = true
- Visuals.Draggble = true
- Visuals.Visible = false
- VisualsText.Name = "VisualsText"
- VisualsText.Parent = Visuals
- VisualsText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- VisualsText.BorderColor3 = Color3.new(1, 1, 1)
- VisualsText.Size = UDim2.new(0, 166, 0, 18)
- VisualsText.Font = Enum.Font.Cartoon
- VisualsText.Text = "Visuals"
- VisualsText.TextColor3 = Color3.new(0, 0, 0)
- VisualsText.TextSize = 14
- Tracers.Name = "Tracers"
- Tracers.Parent = Visuals
- Tracers.BackgroundColor3 = Color3.new(1, 0, 0)
- Tracers.BorderColor3 = Color3.new(1, 1, 1)
- Tracers.Position = UDim2.new(0, 0, 0.132743359, 0)
- Tracers.Size = UDim2.new(0, 166, 0, 19)
- Tracers.Font = Enum.Font.Cartoon
- Tracers.Text = "Tracers"
- Tracers.TextColor3 = Color3.new(0, 0, 0)
- Tracers.TextSize = 14
- Tracers_2.Name = "Tracers"
- Tracers_2.Parent = Visuals
- Tracers_2.BackgroundColor3 = Color3.new(1, 0, 0)
- Tracers_2.BorderColor3 = Color3.new(1, 1, 1)
- Tracers_2.Position = UDim2.new(0, 0, 0.252212375, 0)
- Tracers_2.Size = UDim2.new(0, 166, 0, 19)
- Tracers_2.Font = Enum.Font.Cartoon
- Tracers_2.Text = "ESP"
- Tracers_2.TextColor3 = Color3.new(0, 0, 0)
- Tracers_2.TextSize = 14
- Tp.Name = "Tp"
- Tp.Parent = MadHack
- Tp.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
- Tp.BorderColor3 = Color3.new(1, 1, 1)
- Tp.Position = UDim2.new(0.261682212, 0, 0.0737052113, 0)
- Tp.Size = UDim2.new(0, 166, 0, 226)
- Tp.Draggble = true
- Tp.Visible = false
- Tp.Active = true
- TpText.Name = "TpText"
- TpText.Parent = Tp
- TpText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- TpText.BorderColor3 = Color3.new(1, 1, 1)
- TpText.Size = UDim2.new(0, 166, 0, 18)
- TpText.Font = Enum.Font.Cartoon
- TpText.Text = "Tp's"
- TpText.TextColor3 = Color3.new(0, 0, 0)
- TpText.TextSize = 14
- Player.Name = "Player"
- Player.Parent = MadHack
- Player.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
- Player.BorderColor3 = Color3.new(1, 1, 1)
- Player.Position = UDim2.new(0.466121554, 0, 0.0737051964, 0)
- Player.Size = UDim2.new(0, 166, 0, 226)
- Player.Active = true
- Player.Draggble = true
- Player.Visible = false
- PlayerText.Name = "PlayerText"
- PlayerText.Parent = Player
- PlayerText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- PlayerText.BorderColor3 = Color3.new(1, 1, 1)
- PlayerText.Size = UDim2.new(0, 166, 0, 18)
- PlayerText.Font = Enum.Font.Cartoon
- PlayerText.Text = "Player"
- PlayerText.TextColor3 = Color3.new(0, 0, 0)
- PlayerText.TextSize = 14
- Speed.Name = "Speed"
- Speed.Parent = Player
- Speed.BackgroundColor3 = Color3.new(1, 0, 0)
- Speed.BorderColor3 = Color3.new(1, 1, 1)
- Speed.Position = UDim2.new(0, 0, 0.132743359, 0)
- Speed.Size = UDim2.new(0, 166, 0, 19)
- Speed.Font = Enum.Font.Cartoon
- Speed.Text = "Speed [X]"
- Speed.TextColor3 = Color3.new(0, 0, 0)
- Speed.TextSize = 14
- Speed.MouseButton1Down:connect(function()
- local walkspeedplayer = game:GetService("Players").LocalPlayer
- local walkspeedmouse = walkspeedplayer:GetMouse()
- local walkspeedenabled = false
- function x_walkspeed(key)
- if (key == "x") then
- if walkspeedenabled == false then
- _G.WS = 200;
- local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
- Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- Humanoid.WalkSpeed = _G.WS;
- end)
- Humanoid.WalkSpeed = _G.WS;
- walkspeedenabled = true
- elseif walkspeedenabled == true then
- _G.WS = 20;
- local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
- Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- Humanoid.WalkSpeed = _G.WS;
- end)
- Humanoid.WalkSpeed = _G.WS;
- walkspeedenabled = false
- end
- end
- end
- walkspeedmouse.KeyDown:connect(x_walkspeed)
- end)
- Gravity.Name = "Gravity"
- Gravity.Parent = Player
- Gravity.BackgroundColor3 = Color3.new(1, 0, 0)
- Gravity.BorderColor3 = Color3.new(1, 1, 1)
- Gravity.Position = UDim2.new(0, 0, 0.256637156, 0)
- Gravity.Size = UDim2.new(0, 166, 0, 19)
- Gravity.Font = Enum.Font.Cartoon
- Gravity.Text = "Gravity"
- Gravity.TextColor3 = Color3.new(0, 0, 0)
- Gravity.TextSize = 14
- Gravity.MouseButton1Down:connect(function()
- workspace.Gravity = 196
- end)
- NoClip.Name = "NoClip"
- NoClip.Parent = Player
- NoClip.BackgroundColor3 = Color3.new(1, 0, 0)
- NoClip.BorderColor3 = Color3.new(1, 1, 1)
- NoClip.Position = UDim2.new(0, 0, 0.495109558, 0)
- NoClip.Size = UDim2.new(0, 166, 0, 19)
- NoClip.Font = Enum.Font.Cartoon
- NoClip.Text = "NoClip [B]"
- NoClip.TextColor3 = Color3.new(0, 0, 0)
- NoClip.TextSize = 14
- NoClip.MouseButton1Down:connect(function()
- local noclipplayer = game:GetService("Players").LocalPlayer
- local noclipmouse = noclipplayer:GetMouse()
- local donoclip = false
- local noclip = false
- function b_noclip(key)
- if (key == "b") then
- if noclip == false then
- donoclip = true
- noclip = true
- elseif noclip == true then
- donoclip = false
- noclip = false
- end
- end
- end
- noclipmouse.KeyDown:connect(b_noclip)
- game:GetService("Players").LocalPlayer.Character.Head.Touched:connect(function(obj)
- if obj ~= workspace.Terrain then
- if donoclip == true then
- obj.CanCollide = false
- else
- obj.CanCollide = true
- end
- end
- end)
- end)
- Fly.Name = "Fly"
- Fly.Parent = Player
- Fly.BackgroundColor3 = Color3.new(1, 0, 0)
- Fly.BorderColor3 = Color3.new(1, 1, 1)
- Fly.Position = UDim2.new(0, 0, 0.371215701, 0)
- Fly.Size = UDim2.new(0, 166, 0, 19)
- Fly.Font = Enum.Font.Cartoon
- Fly.Text = "Fly [F]"
- Fly.TextColor3 = Color3.new(0, 0, 0)
- Fly.TextSize = 14
- Fly.MouseButton1Down:connect(function()
- repeat wait()
- until game:GetService"Players".LocalPlayer and game:GetService"Players".LocalPlayer.Character and game:GetService"Players".LocalPlayer.Character:findFirstChild("UpperTorso") and game:GetService"Players".LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game:GetService"Players".LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game:GetService"Players".LocalPlayer
- local torso = plr.Character.UpperTorso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 100
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "f" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- end)
- World.Name = "World"
- World.Parent = MadHack
- World.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
- World.BorderColor3 = Color3.new(1, 1, 1)
- World.Position = UDim2.new(0.677570164, 0, 0.0737051815, 0)
- World.Size = UDim2.new(0, 166, 0, 226)
- World.Active = true
- World.Draggble = true
- World.Visible = false
- WorldText.Name = "WorldText"
- WorldText.Parent = World
- WorldText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- WorldText.BorderColor3 = Color3.new(1, 1, 1)
- WorldText.Size = UDim2.new(0, 166, 0, 18)
- WorldText.Font = Enum.Font.Cartoon
- WorldText.Text = "World"
- WorldText.TextColor3 = Color3.new(0, 0, 0)
- WorldText.TextSize = 14
- Day.Name = "Day"
- Day.Parent = World
- Day.BackgroundColor3 = Color3.new(1, 0, 0)
- Day.BorderColor3 = Color3.new(1, 1, 1)
- Day.Position = UDim2.new(0, 0, 0.132743359, 0)
- Day.Size = UDim2.new(0, 166, 0, 19)
- Day.Font = Enum.Font.Cartoon
- Day.Text = "Day"
- Day.TextColor3 = Color3.new(0, 0, 0)
- Day.TextSize = 14
- Day.MouseButton1Down:connect(function()
- game.Lighting.TimeOfDay = "12:00:00"
- end)
- Night.Name = "Night"
- Night.Parent = World
- Night.BackgroundColor3 = Color3.new(1, 0, 0)
- Night.BorderColor3 = Color3.new(1, 1, 1)
- Night.Position = UDim2.new(0, 0, 0.255938619, 0)
- Night.Size = UDim2.new(0, 166, 0, 19)
- Night.Font = Enum.Font.Cartoon
- Night.Text = "Night"
- Night.TextColor3 = Color3.new(0, 0, 0)
- Night.TextSize = 14
- Night.MouseButton1Down:connect(function()
- game.Lighting.TimeOfDay = "00:00:00"
- end)
- NoLasers.Name = "NoLasers"
- NoLasers.Parent = World
- NoLasers.BackgroundColor3 = Color3.new(1, 0, 0)
- NoLasers.BorderColor3 = Color3.new(1, 1, 1)
- NoLasers.Position = UDim2.new(0, 0, 0.367256641, 0)
- NoLasers.Size = UDim2.new(0, 166, 0, 19)
- NoLasers.Font = Enum.Font.Cartoon
- NoLasers.Text = "NoLasers"
- NoLasers.TextColor3 = Color3.new(0, 0, 0)
- NoLasers.TextSize = 14
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.Insert then
- if opened == true then
- opened = false
- Visuals.Visible = false
- World.Visible = false
- Tp.Visible = false
- Player.Visible = false
- elseif opened == false then
- opened = true
- Visuals.Visible = true
- World.Visible = true
- Tp.Visible = true
- Player.Visible = true
- end
- end
- end)
- game.StarterGui:SetCore("SendNotification",{Title="MadHack",Text="Loaded."})
- wait(1)
- game.StarterGui:SetCore("SendNotification",{Title="MadHack",Text="Press [Insert] to close/open menu"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement