NOOB-WHO-SAY-FUCK

Untitled

Jun 27th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.54 KB | None | 0 0
  1. Workspace = Game:GetService("Workspace")
  2. Players = Game:GetService("Players")
  3. Debris = Game:GetService("Debris")
  4. Player = Players.LocalPlayer
  5. Character = Player.Character
  6. Speed = 100
  7. PrivateSeat = true
  8. Hold = false
  9. SeatColor = BrickColor.new("Bright red")
  10. SmokeColor = BrickColor.new("Dark stone grey")
  11. LightningColor = BrickColor.new("Royal purple")
  12. local Plane
  13. function ChildAdded(child, seat)
  14. if (child.className == "Weld" and child.Name == "SeatWeld") then
  15. if (child.Part0 == seat and child.Part1.Name == "Torso") then
  16. if (child.Part1.Parent.Name ~= Player.Name) then
  17. if (PrivateSeat) then
  18. child.Parent = nil
  19. end
  20. end
  21. end
  22. end
  23. end
  24. function WeldChanged(weld, part0, part1, c0, c1)
  25. weld.Parent = part0
  26. weld.Part0 = part0
  27. weld.Part1 = part1
  28. weld.C0 = c0
  29. weld.C1 = c1
  30. end
  31. function Lightning(part)
  32. local pos1, pos2
  33. if (part and part:IsA("BasePart")) then
  34. while (part.Parent ~= nil) do
  35. pos2 = pos1 or part.Position
  36. pos1 = part.Position + Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2, 2))
  37. if (pos2 ~= nil) then
  38. local zap = Instance.new("Part", Workspace)
  39. zap.Anchored = true
  40. zap.Locked = true
  41. zap.CanCollide = false
  42. zap.TopSurface = 0
  43. zap.BottomSurface = 0
  44. zap.formFactor = 0
  45. zap.Size = Vector3.new(0, 0, 0)
  46. zap.BrickColor = LightningColor
  47. zap.Transparency = 0.1
  48. zap.Reflectance = 0.4
  49. zap.CFrame = CFrame.new((pos1 + pos2) / 2, pos2)
  50. local scale = Instance.new("BlockMesh", zap)
  51. scale.Scale = Vector3.new(0.1, 0.1, (pos1-pos2).magnitude)
  52. local fade = coroutine.create(function()
  53. for index = 0.3, 1, 0.1 do
  54. zap.Transparency = index
  55. wait()
  56. end
  57. zap:Remove()
  58. end)
  59. coroutine.resume(fade)
  60. end
  61. wait()
  62. end
  63. end
  64. end
  65. function Weld(part0, part1, c0, c1, unremoveable)
  66. if (c0 == nil) then c0 = CFrame.new(0, 0, 0) end
  67. if (c1 == nil) then c1 = CFrame.new(0, 0, 0) end
  68. if (part0 and part1) then
  69. local weld = Instance.new("Weld", part0)
  70. weld.Part0 = part0
  71. weld.Part1 = part1
  72. weld.C0 = c0
  73. weld.C1 = c1
  74. if (unremoveable) then
  75. weld.Changed:connect(function() WeldChanged(weld, part0, part1, c0, c1) end)
  76. end
  77. return weld
  78. end
  79. end
  80. if (script.Parent.className ~= "HopperBin") then
  81. local hop = Instance.new("HopperBin", Player.Backpack)
  82. hop.Name = "Plane"
  83. script.Parent = hop
  84. Plane = script.Parent
  85. end
  86. function onButton1Down(mouse, Seat, bodyGyro, bodyVelocity)
  87. Hold = true
  88. while true do
  89. wait()
  90. if (Hold == false) then break end
  91. bodyGyro.cframe = CFrame.new((Seat.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  92. bodyVelocity.velocity = Seat.CFrame.lookVector * Speed
  93. end
  94. end
  95. function onButton1Up(mouse, Seat, bodyGyro, bodyVelocity)
  96. Hold = false
  97. bodyVelocity.velocity = Vector3.new(0, Seat:GetMass()/10, 0)
  98. end
  99. function onKeyDown(mouse, key)
  100. ---[[
  101. end
  102. function onKeyUp(mouse, key)
  103. ---[[
  104. end
  105. function onSelected(mouse)
  106. if (not Character:findFirstChild("TNSplane")) then
  107. local TheNewScripter = Instance.new("Model", Character)
  108. TheNewScripter.Name = "TNSplane"
  109. local Seat = Instance.new("Seat", TheNewScripter)
  110. Seat.Locked = true
  111. Seat.TopSurface = 0
  112. Seat.BottomSurface = 0
  113. Seat.formFactor = 2
  114. Seat.Position = Character.Head.Position
  115. Seat.BrickColor = SeatColor
  116. Seat.Size = Vector3.new(2, 0.4, 2)
  117. local msh = Instance.new("BlockMesh")
  118. msh.Parent = Seat
  119. Seat.ChildAdded:connect(function(child) ChildAdded(child, Seat) end)
  120. local plat = Instance.new("Part", TheNewScripter)
  121. plat.Locked = true
  122. plat.TopSurface = 0 -- Smooth
  123. plat.BottomSurface = 0 -- Smooth
  124. plat.formFactor = 0
  125. plat.Position = Character.Head.Position
  126. plat.BrickColor = BrickColor.new("Really black")
  127. plat.Size = Vector3.new(3, 1, 5)
  128. Weld(Seat, plat, CFrame.new(0, -0.5, 0), nil, false)
  129. local plat1 = Instance.new("Part", TheNewScripter)
  130. plat1.Locked = true
  131. plat1.TopSurface = 0 -- Smooth
  132. plat1.BottomSurface = 0 -- Smooth
  133. plat1.formFactor = 0
  134. plat1.Position = Character.Head.Position
  135. plat1.BrickColor = BrickColor.new("Really black")
  136. plat1.Size = Vector3.new(1, 3, 5)
  137. local msh1 = msh:Clone()
  138. msh1.Parent = plat1
  139. Weld(Seat, plat1, CFrame.new(1.5, 0.5, 0), nil, false)
  140. local plat2 = Instance.new("Part", TheNewScripter)
  141. plat2.Locked = true
  142. plat2.TopSurface = 0 -- Smooth
  143. plat2.BottomSurface = 0 -- Smooth
  144. plat2.formFactor = 0
  145. plat2.Position = Character.Head.Position
  146. plat2.BrickColor = BrickColor.new("Really black")
  147. plat2.Size = Vector3.new(1, 3, 5)
  148. local msh2 = msh:Clone()
  149. msh2.Parent = plat2
  150. Weld(Seat, plat2, CFrame.new(-1.5, 0.5, 0), nil, false)
  151. local plat3 = Instance.new("Part", TheNewScripter)
  152. plat3.Locked = true
  153. plat3.TopSurface = 0 -- Smooth
  154. plat3.BottomSurface = 0 -- Smooth
  155. plat3.formFactor = 0
  156. plat3.Position = Character.Head.Position
  157. plat3.BrickColor = BrickColor.new("Really black")
  158. plat3.Size = Vector3.new(4, 3, 6)
  159. local msh3 = msh:Clone()
  160. msh3.Parent = plat3
  161. Weld(Seat, plat3, CFrame.new(0, 0.5, 4.5), nil, false)
  162. local plat4 = Instance.new("Part", TheNewScripter)
  163. plat4.Locked = true
  164. plat4.TopSurface = 0 -- Smooth
  165. plat4.BottomSurface = 0 -- Smooth
  166. plat4.formFactor = 0
  167. plat4.Position = Character.Head.Position
  168. plat4.BrickColor = BrickColor.new("Really black")
  169. plat4.Size = Vector3.new(3, 3, 1)
  170. local msh4 = msh:Clone()
  171. msh4.Parent = plat4
  172. Weld(Seat, plat4, CFrame.new(0, 0.5, -2), nil, false)
  173. local plat5 = Instance.new("Part", TheNewScripter)
  174. plat5.Locked = true
  175. plat5.TopSurface = 0 -- Smooth
  176. plat5.BottomSurface = 0 -- Smooth
  177. plat5.formFactor = 0
  178. plat5.Position = Character.Head.Position
  179. plat5.BrickColor = BrickColor.new("Really black")
  180. plat5.Size = Vector3.new(2, 1, 6)
  181. local msh3 = msh:Clone()
  182. msh3.Parent = plat5
  183. Weld(Seat, plat5, CFrame.new(0, 0.5, 10), nil, false)
  184. local weg = Instance.new("WedgePart", TheNewScripter)
  185. weg.Locked = true
  186. weg.TopSurface = 0 -- Smooth
  187. weg.BottomSurface = 0 -- Smooth
  188. weg.formFactor = 3
  189. weg.Position = Character.Head.Position
  190. weg.BrickColor = BrickColor.new("Really black")
  191. weg.Size = Vector3.new(4, 1.5, 5)
  192. Weld(Seat, weg, CFrame.new(0, 1.25, -5), nil, false)
  193. local weg2 = Instance.new("WedgePart", TheNewScripter)
  194. weg2.Locked = true
  195. weg2.TopSurface = 0 -- Smooth
  196. weg2.BottomSurface = 0 -- Smooth
  197. weg2.formFactor = 3
  198. weg2.Position = Character.Head.Position
  199. weg2.BrickColor = BrickColor.new("Really black")
  200. weg2.Size = Vector3.new(4, 2, 6)
  201. Weld(Seat, weg2, CFrame.new(0, 3, 4.5)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)), nil, false)
  202. local weg3 = Instance.new("WedgePart", TheNewScripter)
  203. weg3.Locked = true
  204. weg3.TopSurface = 0 -- Smooth
  205. weg3.BottomSurface = 0 -- Smooth
  206. weg3.formFactor = 3
  207. weg3.Position = Character.Head.Position
  208. weg3.BrickColor = BrickColor.new("Really black")
  209. weg3.CanCollide = false
  210. weg3.Size = Vector3.new(1, 3, 6)
  211. Weld(Seat, weg3, CFrame.new(1.5, 2.5, -1.5), nil, false)
  212. local weg4 = Instance.new("WedgePart", TheNewScripter)
  213. weg4.Locked = true
  214. weg4.TopSurface = 0 -- Smooth
  215. weg4.BottomSurface = 0 -- Smooth
  216. weg4.formFactor = 3
  217. weg4.Position = Character.Head.Position
  218. weg4.BrickColor = BrickColor.new("Really black")
  219. weg4.CanCollide = false
  220. weg4.Size = Vector3.new(1, 3, 6)
  221. Weld(Seat, weg4, CFrame.new(-1.5, 2.5, -1.5), nil, false)
  222. local gls = Instance.new("Part", TheNewScripter)
  223. gls.Locked = true
  224. gls.TopSurface = 0 -- Smooth
  225. gls.BottomSurface = 0 -- Smooth
  226. gls.formFactor = 0
  227. gls.Position = Character.Head.Position
  228. gls.BrickColor = BrickColor.new("Mid gray")
  229. gls.Transparency = 0.5
  230. gls.CanCollide = false
  231. gls.Size = Vector3.new(4, 5, 5)
  232. local glm = Instance.new("SpecialMesh")
  233. glm.MeshType = "Sphere"
  234. glm.Parent = gls
  235. Weld(Seat, gls, CFrame.new(0, 2.25, 0), nil, false)
  236. local weg1 = Instance.new("WedgePart", TheNewScripter)
  237. weg1.Locked = true
  238. weg1.TopSurface = 0 -- Smooth
  239. weg1.BottomSurface = 0 -- Smooth
  240. weg1.formFactor = 3
  241. weg1.Position = Character.Head.Position
  242. weg1.BrickColor = BrickColor.new("Really black")
  243. weg1.Size = Vector3.new(4, 1.5, 5)
  244. Weld(Seat, weg1, CFrame.new(0, -0.25, -5)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(0)), nil, false)
  245. local wing = Instance.new("WedgePart", TheNewScripter)
  246. wing.Locked = true
  247. wing.TopSurface = 0 -- Smooth
  248. wing.BottomSurface = 0 -- Smooth
  249. wing.formFactor = 0
  250. wing.Position = Character.Head.Position
  251. wing.BrickColor = BrickColor.new("Really black")
  252. wing.Size = Vector3.new(3, 1, 6)
  253. Weld(Seat, wing, CFrame.new(-5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, false)
  254. local wing1 = Instance.new("WedgePart", TheNewScripter)
  255. wing1.Locked = true
  256. wing1.TopSurface = 0 -- Smooth
  257. wing1.BottomSurface = 0 -- Smooth
  258. wing1.formFactor = 0
  259. wing1.Position = Character.Head.Position
  260. wing1.BrickColor = BrickColor.new("Really black")
  261. wing1.Size = Vector3.new(3, 1, 6)
  262. Weld(Seat, wing1, CFrame.new(5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, false)
  263. local wing2 = Instance.new("WedgePart", TheNewScripter)
  264. wing2.Locked = true
  265. wing2.TopSurface = 0 -- Smooth
  266. wing2.BottomSurface = 0 -- Smooth
  267. wing2.formFactor = 0
  268. wing2.Position = Character.Head.Position
  269. wing2.BrickColor = BrickColor.new("Really black")
  270. wing2.Size = Vector3.new(2, 1, 3)
  271. Weld(Seat, wing2, CFrame.new(-2.5, 0.5, 12)*CFrame.Angles(math.rad(180),math.rad(90),math.rad(0)), nil, false)
  272. local wing3 = Instance.new("WedgePart", TheNewScripter)
  273. wing3.Locked = true
  274. wing3.TopSurface = 0 -- Smooth
  275. wing3.BottomSurface = 0 -- Smooth
  276. wing3.formFactor = 0
  277. wing3.Position = Character.Head.Position
  278. wing3.BrickColor = BrickColor.new("Really black")
  279. wing3.Size = Vector3.new(2, 1, 3)
  280. Weld(Seat, wing3, CFrame.new(2.5, 0.5, 12)*CFrame.Angles(math.rad(180),math.rad(-90),math.rad(0)), nil, false)
  281. coroutine.resume(coroutine.create(function()
  282. Lightning(Seat)
  283. end))
  284. local weld = Weld(Seat, plat, CFrame.new(0, -0.5, 0), nil, true)
  285. local bodyGyro = Instance.new("BodyGyro", Seat)
  286. bodyGyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  287. bodyGyro.cframe = Seat.CFrame
  288. local bodyVelocity = Instance.new("BodyVelocity", Seat)
  289. bodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  290. bodyVelocity.velocity = Vector3.new(0, 0, 0)
  291. mouse.Button1Down:connect(function() onButton1Down(mouse, Seat, bodyGyro, bodyVelocity) end)
  292. mouse.Button1Up:connect(function() onButton1Up(mouse, Seat, bodyGyro, bodyVelocity) end)
  293. mouse.KeyDown:connect(function(key) onKeyDown(mouse, key) end)
  294. mouse.KeyUp:connect(function(key) onKeyUp(mouse, key) end)
  295. end
  296. end
  297. function onDeselected()
  298. pcall(function()
  299. for i=1,3 do
  300. Character.TNSplane:Remove()
  301. end
  302. end)
  303. end
  304. Plane.Selected:connect(onSelected)
  305. Plane.Deselected:connect(onDeselected)
Add Comment
Please, Sign In to add comment