Advertisement
ttaybuz_scripts

Fly and Noclip

Mar 17th, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.49 KB | None | 0 0
  1. local SG = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local UICorner = Instance.new("UICorner")
  4. local Fly = Instance.new("TextButton")
  5. local UICorner_2 = Instance.new("UICorner")
  6. local NoClip = Instance.new("TextButton")
  7. local UICorner_3 = Instance.new("UICorner")
  8. local TextLabel = Instance.new("TextLabel")
  9.  
  10.  
  11. SG.Name = "SG"
  12. SG.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13.  
  14. Frame.Parent = SG
  15. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  16. Frame.Position = UDim2.new(0.314955652, 0, 0.560317457, 0)
  17. Frame.Size = UDim2.new(0, 253, 0, 106)
  18.  
  19. UICorner.Parent = Frame
  20.  
  21. Fly.Name = "Fly"
  22. Fly.Parent = Frame
  23. Fly.BackgroundColor3 = Color3.fromRGB(130, 130, 130)
  24. Fly.BorderSizePixel = 0
  25. Fly.Position = UDim2.new(-2.50786543e-05, 0, 0.291734278, 0)
  26. Fly.Size = UDim2.new(0, 115, 0, 57)
  27. Fly.Font = Enum.Font.SourceSans
  28. Fly.Text = "Fly"
  29. Fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  30. Fly.TextSize = 14.000
  31.  
  32. UICorner_2.Parent = Fly
  33.  
  34. NoClip.Name = "NoClip"
  35. NoClip.Parent = Frame
  36. NoClip.BackgroundColor3 = Color3.fromRGB(130, 130, 130)
  37. NoClip.BorderSizePixel = 0
  38. NoClip.Position = UDim2.new(0.542919934, 0, 0.291734248, 0)
  39. NoClip.Size = UDim2.new(0, 115, 0, 57)
  40. NoClip.Font = Enum.Font.SourceSans
  41. NoClip.Text = "NoClip"
  42. NoClip.TextColor3 = Color3.fromRGB(0, 0, 0)
  43. NoClip.TextSize = 14.000
  44.  
  45. UICorner_3.Parent = NoClip
  46.  
  47. TextLabel.Parent = Frame
  48. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. TextLabel.BorderSizePixel = 0
  50. TextLabel.Position = UDim2.new(0.102766797, 0, 0, 0)
  51. TextLabel.Size = UDim2.new(0, 200, 0, 30)
  52. TextLabel.Font = Enum.Font.SourceSans
  53. TextLabel.Text = "Fly/ Noclip"
  54. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  55. TextLabel.TextScaled = true
  56. TextLabel.TextSize = 14.000
  57. TextLabel.TextWrapped = true
  58.  
  59.  
  60. local function MINULS_fake_script()  
  61.     local script = Instance.new('Script', Fly)
  62.  
  63.     local fly = game.StarterGui.SG.Frame.Fly
  64.    
  65.     fly.MouseButton1Down:connect(function()
  66.         repeat wait()
  67.         until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  68.         local mouse = game.Players.LocalPlayer:GetMouse()
  69.         repeat wait() until mouse
  70.         local plr = game.Players.LocalPlayer
  71.         local torso = plr.Character.Torso
  72.         local flying = true
  73.         local deb = true
  74.         local ctrl = {f = 0, b = 0, l = 0, r = 0}
  75.         local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  76.         local maxspeed = 50
  77.         local speed = 0
  78.    
  79.         function Fly()
  80.             local bg = Instance.new("BodyGyro", torso)
  81.             bg.P = 9e4
  82.             bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  83.             bg.cframe = torso.CFrame
  84.             local bv = Instance.new("BodyVelocity", torso)
  85.             bv.velocity = Vector3.new(0,0.1,0)
  86.             bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  87.             repeat wait()
  88.                 plr.Character.Humanoid.PlatformStand = true
  89.                 if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  90.                     speed = speed+.5+(speed/maxspeed)
  91.                     if speed > maxspeed then
  92.                         speed = maxspeed
  93.                     end
  94.                 elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  95.                     speed = speed-1
  96.                     if speed < 0 then
  97.                         speed = 0
  98.                     end
  99.                 end
  100.                 if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  101.                     bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  102.                     lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  103.                 elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  104.                     bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  105.                 else
  106.                     bv.velocity = Vector3.new(0,0.1,0)
  107.                 end
  108.                 bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  109.             until not flying
  110.             ctrl = {f = 0, b = 0, l = 0, r = 0}
  111.             lastctrl = {f = 0, b = 0, l = 0, r = 0}
  112.             speed = 0
  113.             bg:Destroy()
  114.             bv:Destroy()
  115.             plr.Character.Humanoid.PlatformStand = false
  116.         end
  117.         mouse.KeyDown:connect(function(key)
  118.             if key:lower() == "e" then
  119.                 if flying then flying = false
  120.                 else
  121.                     flying = true
  122.                     Fly()
  123.                 end
  124.             elseif key:lower() == "w" then
  125.                 ctrl.f = 1
  126.             elseif key:lower() == "s" then
  127.                 ctrl.b = -1
  128.             elseif key:lower() == "a" then
  129.                 ctrl.l = -1
  130.             elseif key:lower() == "d" then
  131.                 ctrl.r = 1
  132.             end
  133.         end)
  134.         mouse.KeyUp:connect(function(key)
  135.             if key:lower() == "w" then
  136.                 ctrl.f = 0
  137.             elseif key:lower() == "s" then
  138.                 ctrl.b = 0
  139.             elseif key:lower() == "a" then
  140.                 ctrl.l = 0
  141.             elseif key:lower() == "d" then
  142.                 ctrl.r = 0
  143.             end
  144.         end)
  145.         Fly()
  146.     end)
  147. end
  148. coroutine.wrap(MINULS_fake_script)()
  149. local function RQVSM_fake_script()
  150.     local script = Instance.new('Script', NoClip)
  151.  
  152.     local NoClip = game.StarterGui.SG.Frame.NoClip
  153.    
  154.     NoClip.MouseButton1Down:connect(function()
  155.         local noclip = true char = game.Players.LocalPlayer.Character while true do if noclip == true then for _,v in pairs(char:children()) do pcall(function() if v.className == "Part" then v.CanCollide = false elseif v.ClassName == "Model" then v.Head.CanCollide = false end end) end end game:service("RunService").Stepped:wait() end
  156.     end)
  157. end
  158. coroutine.wrap(RQVSM_fake_script)()
  159.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement