Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Toggle = Instance.new("ScreenGui")
- local Drag = Instance.new("TextButton")
- local Background = Instance.new("ImageLabel")
- local Fly = Instance.new("TextButton")
- local Noclip = Instance.new("TextButton")
- local LP = game.Players.LocalPlayer
- local Mouse = LP:GetMouse()
- local flydab = false
- function noclip(plr)
- admintag = Instance.new("BoolValue")
- admintag.Parent = game.Players[plr]
- admintag.Value = true
- admintag.Name = "noclip"
- end
- FLYING = false
- iyflyspeed = 1
- function sFLY() -- from rocky2u cmdscript
- repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') and LP.Character:FindFirstChild('Humanoid')
- repeat wait() until Mouse
- local T = LP.Character.HumanoidRootPart
- local CONTROL = {F = 0, B = 0, L = 0, R = 0}
- local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
- local SPEED = 0
- local function FLY()
- FLYING = true
- local BG = Instance.new('BodyGyro', T)
- local BV = Instance.new('BodyVelocity', T)
- BG.P = 9e4
- BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- BG.cframe = T.CFrame
- BV.velocity = Vector3.new(0, 0.1, 0)
- BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
- spawn(function()
- repeat wait()
- LP.Character.Humanoid.PlatformStand = true
- if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
- SPEED = 50
- elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
- SPEED = 0
- end
- if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
- BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
- lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
- elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
- BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
- else
- BV.velocity = Vector3.new(0, 0.1, 0)
- end
- BG.cframe = workspace.CurrentCamera.CoordinateFrame
- until not FLYING
- CONTROL = {F = 0, B = 0, L = 0, R = 0}
- lCONTROL = {F = 0, B = 0, L = 0, R = 0}
- SPEED = 0
- BG:destroy()
- BV:destroy()
- LP.Character.Humanoid.PlatformStand = false
- end)
- end
- Mouse.KeyDown:connect(function(KEY)
- if KEY:lower() == 'w' then
- CONTROL.F = iyflyspeed
- elseif KEY:lower() == 's' then
- CONTROL.B = -iyflyspeed
- elseif KEY:lower() == 'a' then
- CONTROL.L = -iyflyspeed
- elseif KEY:lower() == 'd' then
- CONTROL.R = iyflyspeed
- end
- end)
- Mouse.KeyUp:connect(function(KEY)
- if KEY:lower() == 'w' then
- CONTROL.F = 0
- elseif KEY:lower() == 's' then
- CONTROL.B = 0
- elseif KEY:lower() == 'a' then
- CONTROL.L = 0
- elseif KEY:lower() == 'd' then
- CONTROL.R = 0
- end
- end)
- FLY()
- end
- function NOFLY()
- FLYING = false
- LP.Character.Humanoid.PlatformStand = false
- end
- Toggle.Name = "Toggle"
- Toggle.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Drag.Name = "Drag"
- Drag.Parent = Toggle
- Drag.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Drag.BackgroundTransparency = 0.9990000128746
- Drag.BorderColor3 = Color3.new(1, 1, 1)
- Drag.Position = UDim2.new(0.788501024, 0, 0.366223931, 0)
- Drag.Size = UDim2.new(0, 190, 0, 190)
- Drag.Font = Enum.Font.ArialBold
- Drag.Text = ""
- Drag.TextColor3 = Color3.new(1, 1, 1)
- Drag.TextSize = 14
- Drag.TextWrapped = true
- Drag.Draggable = true
- Background.Name = "Background"
- Background.Parent = Drag
- Background.BackgroundColor3 = Color3.new(1, 1, 1)
- Background.Position = UDim2.new(0.00235599279, 0, -0.0012384057, 0)
- Background.Size = UDim2.new(0, 190, 0, 190)
- Background.ZIndex = 0
- Background.Image = "rbxassetid://0&hash=12ed3f0fdc0764ab01645b356df12dc3"
- Fly.Name = "Fly"
- Fly.Parent = Background
- Fly.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Fly.BackgroundTransparency = 0.80000001192093
- Fly.BorderColor3 = Color3.new(1, 1, 1)
- Fly.Position = UDim2.new(0.0473684222, 0, 0.0894736871, 0)
- Fly.Size = UDim2.new(0, 174, 0, 79)
- Fly.ZIndex = 2
- Fly.Font = Enum.Font.ArialBold
- Fly.Text = "Toggle Fly"
- Fly.TextColor3 = Color3.new(1, 1, 1)
- Fly.TextSize = 14
- Fly.TextWrapped = true
- Noclip.Name = "Noclip"
- Noclip.Parent = Background
- Noclip.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Noclip.BackgroundTransparency = 0.80000001192093
- Noclip.BorderColor3 = Color3.new(1, 1, 1)
- Noclip.Position = UDim2.new(0.0473684222, 0, 0.547368407, 0)
- Noclip.Size = UDim2.new(0, 174, 0, 69)
- Noclip.ZIndex = 2
- Noclip.Font = Enum.Font.ArialBold
- Noclip.Text = "Toggle Noclip"
- Noclip.TextColor3 = Color3.new(1, 1, 1)
- Noclip.TextSize = 14
- Fly.MouseButton1Click:connect(function()
- if flydab == false then
- sFLY()
- flydab = true
- elseif flydab == true then
- NOFLY()
- flydab = false
- end
- end)
- Noclip.MouseButton1Click:connect(function()
- if game.Players.LocalPlayer:FindFirstChild("noclip") then
- game.Players.LocalPlayer.noclip:Destroy()
- else
- noclip(game.Players.LocalPlayer.Name)
- game:GetService('RunService').Stepped:connect(function()
- if game.Players.LocalPlayer:FindFirstChild("noclip") then
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- end
- end)
- end
- end)
Add Comment
Please, Sign In to add comment