Advertisement
BINCOOD

Fly Car Script

Dec 25th, 2022 (edited)
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. --Fly car Script:
  2. local FlyCarGui = Instance.new("ScreenGui")
  3. local W = Instance.new("TextButton")
  4. local S = Instance.new("TextButton")
  5. local A = Instance.new("TextButton")
  6. local D = Instance.new("TextButton")
  7. local Fly = Instance.new("TextButton")
  8. local unfly = Instance.new("TextButton")
  9. local StopFly = Instance.new("TextButton")
  10. local Speed = Instance.new("TextBox")
  11. local Open = Instance.new("TextButton")
  12. local Close = Instance.new("TextButton")
  13. local Remove = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. FlyCarGui.Name = "FlyCarGui"
  18. FlyCarGui.Parent = game.CoreGui
  19.  
  20. Speed.Name = "Speed"
  21. Speed.Parent = FlyCarGui
  22. Speed.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  23. Speed.Position = UDim2.new(0,1,0.2,0)
  24. Speed.Size = UDim2.new(0, 25, 0, 25)
  25. Speed.Font = Enum.Font.SourceSans
  26. Speed.Text = "Speed"
  27. Speed.TextColor3 = Color3.fromRGB(170, 0, 255)
  28. Speed.TextScaled = true
  29. Speed.TextSize = 14.000
  30.  
  31. Remove.Name = "Remove"
  32. Remove.Parent = FlyCarGui
  33. Remove.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  34. Remove.Position = UDim2.new(0.955, 0, 0, 0)
  35. Remove.Size = UDim2.new(0, 35, 0, 35)
  36. Remove.Font = Enum.Font.SourceSans
  37. Remove.Text = "Remove Gui"
  38. Remove.TextColor3 = Color3.fromRGB(170, 0, 255)
  39. Remove.TextScaled = true
  40. Remove.TextSize = 14.000
  41. Remove.Visible = false
  42. Remove.MouseButton1Down:Connect(function()
  43. game.CoreGui.FlyCarGui:destroy()
  44. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  45. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  46. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyGyro"):Destroy()
  47. end)
  48.  
  49. Open.Name = "Open"
  50. Open.Parent = FlyCarGui
  51. Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  52. Open.Position = UDim2.new(0, 0, 0.50000000000, 0)
  53. Open.Size = UDim2.new(0, 30, 0, 30)
  54. Open.Font = Enum.Font.SourceSans
  55. Open.Text = "Open"
  56. Open.TextColor3 = Color3.fromRGB(0, 100, 100)
  57. Open.TextScaled = true
  58. Open.TextSize = 14.000
  59. Open.Visible = false
  60. Open.MouseButton1Down:Connect(function()
  61. Open.Visible = false
  62. Close.Visible = true
  63. Speed.Visible = true
  64. unfly.Visible = true
  65. StopFly.Visible = true
  66. Fly.Visible = true
  67. W.Visible = true
  68. S.Visible = true
  69. Remove.Visible = false
  70. end)
  71.  
  72. Close.Name = "Close"
  73. Close.Parent = FlyCarGui
  74. Close.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  75. Close.Position = UDim2.new(0, 0, 0.50000000000, 0)
  76. Close.Size = UDim2.new(0, 30, 0, 30)
  77. Close.Font = Enum.Font.SourceSans
  78. Close.Text = "Close"
  79. Close.TextColor3 = Color3.fromRGB(0, 100, 100)
  80. Close.TextScaled = true
  81. Close.TextSize = 14.000
  82. Close.MouseButton1Down:Connect(function()
  83. Open.Visible = true
  84. Close.Visible = false
  85. Speed.Visible = false
  86. unfly.Visible = false
  87. StopFly.Visible = false
  88. Fly.Visible = false
  89. W.Visible = false
  90. S.Visible = false
  91. Remove.Visible = true
  92. end)
  93.  
  94. unfly.Name = "unfly"
  95. unfly.Parent = FlyCarGui
  96. unfly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  97. unfly.Position = UDim2.new(0.695689976, 0, 0.181818187, 0)
  98. unfly.Size = UDim2.new(0, 50, 0, 40)
  99. unfly.Font = Enum.Font.SourceSans
  100. unfly.Text = "unfly"
  101. unfly.TextColor3 = Color3.fromRGB(170, 0, 255)
  102. unfly.TextScaled = true
  103. unfly.TextSize = 14.000
  104. unfly.TextWrapped = true
  105. unfly.MouseButton1Down:Connect(function()
  106. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  107. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyGyro"):Destroy()
  108. end)
  109.  
  110. StopFly.Name = "Stop Fly"
  111. StopFly.Parent = FlyCarGui
  112. StopFly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  113. StopFly.Position = UDim2.new(0.695689976, 0, 0.0213903747, 0)
  114. StopFly.Size = UDim2.new(0, 50, 0, 40)
  115. StopFly.Font = Enum.Font.SourceSans
  116. StopFly.Text = "Stop fly"
  117. StopFly.TextColor3 = Color3.fromRGB(170, 0, 255)
  118. StopFly.TextScaled = true
  119. StopFly.TextSize = 14.000
  120. StopFly.TextWrapped = true
  121. StopFly.MouseButton1Down:Connect(function()
  122. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  123. end)
  124.  
  125. Fly.Name = "Fly"
  126. Fly.Parent = FlyCarGui
  127. Fly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  128. Fly.Position = UDim2.new(0.588797748, 0, 0.0213903747, 0)
  129. Fly.Size = UDim2.new(0, 50, 0, 40)
  130. Fly.Font = Enum.Font.SourceSans
  131. Fly.Text = "Fly"
  132. Fly.TextColor3 = Color3.fromRGB(170, 0, 127)
  133. Fly.TextScaled = true
  134. Fly.TextSize = 14.000
  135. Fly.TextWrapped = true
  136. Fly.MouseButton1Down:Connect(function()
  137. local BV = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.HumanoidRootPart)
  138. local BG = Instance.new("BodyGyro",game.Players.LocalPlayer.Character.HumanoidRootPart)
  139. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  140. BG.D = 5000
  141. BG.P = 50000
  142. BG.CFrame = game.Workspace.CurrentCamera.CFrame
  143. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  144. end)
  145.  
  146. W.Name = "W"
  147. W.Parent = FlyCarGui
  148. W.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  149. W.Position = UDim2.new(0.191668837, 0, 0.583604283, 0)
  150. W.Size = UDim2.new(0, 58, 0, 50)
  151. W.Font = Enum.Font.SourceSans
  152. W.Text = "↑"
  153. W.TextColor3 = Color3.fromRGB(226, 226, 226)
  154. W.TextScaled = true
  155. W.TextSize = 14.000
  156. W.TextWrapped = true
  157. W.MouseButton1Down:Connect(function()
  158. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  159. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  160. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyGyro"):Destroy()
  161. wait(.1)
  162. local BV = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.HumanoidRootPart)
  163. local BG = Instance.new("BodyGyro",game.Players.LocalPlayer.Character.HumanoidRootPart)
  164. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  165. BG.D = 5000
  166. BG.P = 50000
  167. BG.CFrame = game.Workspace.CurrentCamera.CFrame
  168. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  169. BV.Velocity = game.Workspace.CurrentCamera.CFrame.LookVector * Speed.Text
  170. end)
  171.  
  172.  
  173. S.Name = "S"
  174. S.Parent = FlyCarGui
  175. S.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  176. S.Position = UDim2.new(0.191668837, 0, 0.735294104, 0)
  177. S.Size = UDim2.new(0, 58, 0, 50)
  178. S.Font = Enum.Font.SourceSans
  179. S.Text = "↓"
  180. S.TextColor3 = Color3.fromRGB(255, 255, 255)
  181. S.TextScaled = true
  182. S.TextSize = 14.000
  183. S.TextWrapped = true
  184. S.MouseButton1Down:Connect(function()
  185. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  186. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  187. game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChildOfClass("BodyGyro"):Destroy()
  188. wait(.1)
  189. local BV = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.HumanoidRootPart)
  190. local BG = Instance.new("BodyGyro",game.Players.LocalPlayer.Character.HumanoidRootPart)
  191. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  192. BG.D = 5000
  193. BG.P = 50000
  194. BG.CFrame = game.Workspace.CurrentCamera.CFrame
  195. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  196. BV.Velocity = game.Workspace.CurrentCamera.CFrame.LookVector * -Speed.Text
  197. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement