MaxproGlitcher

New Fly Ghost Max

Mar 20th, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. workspace.FallenPartsDestroyHeight = math.huge-math.huge
  2. getgenv().FlySpeed = 1 -- default 1
  3. getgenv().www = false
  4. getgenv().aaa = false
  5. getgenv().sss = false
  6. getgenv().ddd = false
  7. getgenv().qqq = false
  8. getgenv().eee = false
  9. getgenv().en = false
  10. getgenv().ssss = game.Players.LocalPlayer:GetMouse()
  11. getgenv().currentcf = nil
  12.  
  13. local part = Instance.new("Part") -- Create a new part
  14.  
  15. part.Name = "a"
  16. part.Anchored = true
  17. part.Parent = game.Workspace
  18. part.CFrame = CFrame.new(0, -600000, 0)
  19. ssss.KeyDown:connect(function(key)
  20. if key == "=" then
  21. getgenv().FlySpeed = FlySpeed + 1
  22. end
  23. end)
  24. ssss.KeyDown:connect(function(key)
  25. if key == "-" then
  26. getgenv().FlySpeed = 1
  27. end
  28. end)
  29. ssss.KeyDown:connect(function(key)
  30. if key == "w" then
  31. getgenv().www = true
  32. end
  33. end)
  34. ssss.KeyDown:connect(function(key)
  35. if key == "a" then
  36. getgenv().aaa = true
  37. end
  38. end)
  39. ssss.KeyDown:connect(function(key)
  40. if key == "s" then
  41. getgenv().sss = true
  42. end
  43. end)
  44. ssss.KeyDown:connect(function(key)
  45. if key == "d" then
  46. getgenv().ddd = true
  47. end
  48. end)
  49. ssss.KeyDown:connect(function(key)
  50. if key == "q" then
  51. getgenv().qqq = true
  52. end
  53. end)
  54. ssss.KeyDown:connect(function(key)
  55. if key == "e" then
  56. getgenv().eee = true
  57. end
  58. end)
  59. ssss.KeyUp:connect(function(key)
  60. if key == "w" then
  61. getgenv().www = false
  62. end
  63. end)
  64. ssss.KeyUp:connect(function(key)
  65. if key == "a" then
  66. getgenv().aaa = false
  67. end
  68. end)
  69. ssss.KeyUp:connect(function(key)
  70. if key == "s" then
  71. getgenv().sss = false
  72. end
  73. end)
  74. ssss.KeyUp:connect(function(key)
  75. if key == "d" then
  76. getgenv().ddd = false
  77. end
  78. end)
  79. ssss.KeyUp:connect(function(key)
  80. if key == "q" then
  81. getgenv().qqq = false
  82. end
  83. end)
  84. ssss.KeyUp:connect(function(key)
  85. if key == "e" then
  86. getgenv().eee = false
  87. end
  88. end)
  89. ssss.KeyDown:connect(function(key)
  90. if key == "x" then
  91. if en == true then
  92. getgenv().en = false
  93. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  94. else
  95. getgenv().en = true
  96. getgenv().currentcf = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  97. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = part.CFrame
  98. wait(0.2)
  99. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  100. wait()
  101. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = currentcf
  102. end
  103. end
  104. end)
  105. game:GetService("RunService").RenderStepped:Connect(function()
  106. if en == true then
  107.  
  108. if www == true then
  109. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,FlySpeed*-1)
  110. end
  111. if aaa == true then
  112. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(FlySpeed*-1,0,0)
  113. end
  114. if sss == true then
  115. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,FlySpeed)
  116. end
  117. if ddd == true then
  118. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(FlySpeed,0,0)
  119. end
  120. if qqq == true then
  121. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,FlySpeed*-1,0)
  122. end
  123. if eee == true then
  124. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,FlySpeed,0)
  125. end
  126. end
  127. end)
Add Comment
Please, Sign In to add comment