Advertisement
plytalent

manafly(nightly)

Dec 19th, 2020 (edited)
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. local manafly = false
  2. local MANAFLY = nil
  3. local leftorright,upordown,backorforward = 0,0,0
  4. local plr = game:GetService("Players").LocalPlayer
  5. local mouse = plr:GetMouse()
  6. local Character = plr.Character
  7. local Ui
  8. local speed = 2.5
  9. game:GetService("RunService"):BindToRenderStep("MANA FLY IN GAIA",1,function()
  10. if manafly then
  11. Character:SetPrimaryPartCFrame(Character:GetPrimaryPartCFrame():Lerp(Character:GetPrimaryPartCFrame()*CFrame.new(leftorright,upordown,backorforward),0.5))
  12. --[[Character.HumanoidRootPart.Anchored = true]]
  13. --print(CFrame.new(leftorright,upordown,backorforward))
  14. if not MANAFLY then
  15. MANAFLY = Instance.new("Part")
  16. end
  17. MANAFLY.Parent = workspace
  18. MANAFLY.Size = Vector3.new(2,1,2)
  19. MANAFLY.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3.5,0)
  20. MANAFLY.Name = "MANAFLYPART"
  21. MANAFLY.Anchored = true
  22. end
  23. if plr.Character ~= Character then
  24. Character = plr.Character
  25. end
  26. end)
  27.  
  28. XD=Instance.new("ScreenGui")
  29. syn.protect_gui(XD)
  30. XD.Parent = game:GetService("CoreGui")
  31. Ui = Instance.new("Frame",XD)
  32. local ButtonSubmit = Instance.new("TextButton",Ui)
  33. local Up = Instance.new("TextBox",Ui)
  34. local Key1 = Instance.new("TextLabel",Ui)
  35. Ui.Position= UDim2.new(0.89, 0, 0.5, 0)
  36. Ui.Size = UDim2.new(0.11, 0, 0.25, 0)
  37. Ui.BorderSizePixel = 0
  38. ButtonSubmit.Size = UDim2.new(1, 0, 0.2, 0)
  39. ButtonSubmit.Text = "SUBMIT"
  40. Key1.Position = UDim2.new(0, 0, 0.199, 0)
  41. Key1.Size = UDim2.new(1, 0, 0.2, 0)
  42. Key1.Text = "SPEED UP"
  43. Up.Position = UDim2.new(0, 0, 0.397, 0)
  44. Up.Size = UDim2.new(1, 0, 0.2, 0)
  45. ButtonSubmit.MouseButton1Click:Connect(function()
  46. speed=tonumber(Up.Text)
  47. end)
  48. mouse.KeyDown:Connect(function(k)
  49. if k == "w" then
  50. backorforward = backorforward - speed
  51. elseif k == "s" then
  52. backorforward = backorforward + speed
  53. elseif k == "a" then
  54. leftorright = leftorright - speed
  55. elseif k == "d" then
  56. leftorright = leftorright + speed
  57. elseif k == "z" then
  58. upordown = upordown - speed
  59. elseif k == "x" then
  60. upordown = upordown + speed
  61. elseif k == "b" then
  62. manafly = not manafly
  63. leftorright,upordown,backorforward = 0,0,0
  64. Character = plr.Character
  65. Character.HumanoidRootPart.Anchored = false
  66. end
  67. end)
  68. mouse.KeyUp:Connect(function(k)
  69. if k == "w" then
  70. backorforward = backorforward + speed
  71. elseif k == "s" then
  72. backorforward = backorforward - speed
  73. elseif k == "a" then
  74. leftorright = leftorright + speed
  75. elseif k == "d" then
  76. leftorright = leftorright - speed
  77. elseif k == "z" then
  78. upordown = upordown + speed
  79. elseif k == "x" then
  80. upordown = upordown - speed
  81. end
  82. end)
  83.  
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement