Advertisement
creamylol10123

rgrgddgdgdg

Oct 4th, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1.  
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Flyinggui = Instance.new("Frame")
  4. local Fly = Instance.new("TextButton")
  5. local TextLabel = Instance.new("TextLabel")
  6.  
  7.  
  8.  
  9. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. Flyinggui.Name = "Flyinggui"
  13. Flyinggui.Parent = ScreenGui
  14. Flyinggui.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  15. Flyinggui.BackgroundTransparency = 0.300
  16. Flyinggui.BorderColor3 = Color3.fromRGB(0, 0, 0)
  17. Flyinggui.Position = UDim2.new(0.068765536, 0, 0.172824785, 0)
  18. Flyinggui.Size = UDim2.new(0, 180, 0, 185)
  19.  
  20. Fly.Name = "Fly"
  21. Fly.Parent = Flyinggui
  22. Fly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  23. Fly.BackgroundTransparency = 0.700
  24. Fly.Position = UDim2.new(-0.00225567282, 0, 0.453938752, 0)
  25. Fly.Size = UDim2.new(0, 180, 0, 101)
  26. Fly.Font = Enum.Font.Jura
  27. Fly.Text = "Fly"
  28. Fly.TextColor3 = Color3.fromRGB(255, 255, 255)
  29. Fly.TextScaled = true
  30. Fly.TextSize = 14.000
  31. Fly.TextWrapped = true
  32. Fly.MouseButton1Down:connect(function()
  33. repeat wait()
  34. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  35. local mouse = game.Players.LocalPlayer:GetMouse()
  36. repeat wait() until mouse
  37. local plr = game.Players.LocalPlayer
  38. local torso = plr.Character.Torso
  39. local flying = true
  40. local deb = true
  41. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  42. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  43. local maxspeed = 50
  44. local speed = 0
  45.  
  46. function Fly()
  47. local bg = Instance.new("BodyGyro", torso)
  48. bg.P = 9e4
  49. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  50. bg.cframe = torso.CFrame
  51. local bv = Instance.new("BodyVelocity", torso)
  52. bv.velocity = Vector3.new(0,0.1,0)
  53. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  54. repeat wait()
  55. plr.Character.Humanoid.PlatformStand = true
  56. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  57. speed = speed+.5+(speed/maxspeed)
  58. if speed > maxspeed then
  59. speed = maxspeed
  60. end
  61. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  62. speed = speed-1
  63. if speed < 0 then
  64. speed = 0
  65. end
  66. end
  67. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  68. 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
  69. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  70. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  71. 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
  72. else
  73. bv.velocity = Vector3.new(0,0.1,0)
  74. end
  75. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  76. until not flying
  77. ctrl = {f = 0, b = 0, l = 0, r = 0}
  78. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  79. speed = 0
  80. bg:Destroy()
  81. bv:Destroy()
  82. plr.Character.Humanoid.PlatformStand = false
  83. end
  84. mouse.KeyDown:connect(function(key)
  85. if key:lower() == "e" then
  86. if flying then flying = false
  87. else
  88. flying = true
  89. Fly()
  90. end
  91. elseif key:lower() == "w" then
  92. ctrl.f = 1
  93. elseif key:lower() == "s" then
  94. ctrl.b = -1
  95. elseif key:lower() == "a" then
  96. ctrl.l = -1
  97. elseif key:lower() == "d" then
  98. ctrl.r = 1
  99. end
  100. end)
  101. mouse.KeyUp:connect(function(key)
  102. if key:lower() == "w" then
  103. ctrl.f = 0
  104. elseif key:lower() == "s" then
  105. ctrl.b = 0
  106. elseif key:lower() == "a" then
  107. ctrl.l = 0
  108. elseif key:lower() == "d" then
  109. ctrl.r = 0
  110. end
  111. end)
  112. Fly()
  113. end)
  114.  
  115.  
  116. TextLabel.Parent = Flyinggui
  117. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118. TextLabel.BackgroundTransparency = 1.000
  119. TextLabel.Position = UDim2.new(-0.00170994352, 0, 0, 0)
  120. TextLabel.Size = UDim2.new(0, 179, 0, 50)
  121. TextLabel.Font = Enum.Font.Jura
  122. TextLabel.Text = "Fly Gui 1.0 (made for Panda!#6969)"
  123. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  124. TextLabel.TextScaled = true
  125. TextLabel.TextSize = 14.000
  126. TextLabel.TextWrapped = true
  127.  
  128.  
  129. local function CJMR_fake_script()
  130. local script = Instance.new('Script', ScreenGui)
  131.  
  132. frame = script.Parent.Flyinggui
  133. frame.Draggable = true
  134. frame.Active = true
  135. frame.Selectable = true
  136. end
  137. coroutine.wrap(CJMR_fake_script)()
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement