Advertisement
NextFlamePB

ROBLOX Plane Script but better

Dec 18th, 2016
30,542
1
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.05 KB | None | 1 0
  1. local char = game.Players.LocalPlayer.Character
  2.  
  3.  
  4. local player = game.Players.LocalPlayer
  5. repeat wait() until player.Character.Humanoid
  6. local humanoid = player.Character.Humanoid
  7. local mouse = player:GetMouse()
  8.  
  9. local weld = Instance.new("Weld",char.Torso)
  10. weld.Part0 = char.Torso
  11.  
  12. local plane = Instance.new("Part",char.Torso)
  13. plane.Anchored = false
  14. plane.CanCollide = false
  15. plane.Size = Vector3.new(3,2,6)
  16. plane.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  17. weld.Part1 = plane
  18. weld.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,math.rad(270),0)
  19.  
  20. local pf = Instance.new("ForceField")
  21. pf.Parent = game.Players.LocalPlayer.Character
  22.  
  23. for i,v in pairs(char.Torso:GetChildren()) do
  24.    if v.ClassName == 'Decal' then
  25.         v:Destroy()
  26.    end
  27. end
  28. for i,v in pairs(char:GetChildren()) do
  29.    if v.ClassName == 'Hat' then
  30.        v:Destroy()
  31.    end
  32. end
  33. for i,v in pairs(char.Head:GetChildren()) do
  34.    if v.ClassName == 'Decal' then
  35.        v:Destroy()
  36.    end
  37. end
  38.  
  39. char.Humanoid.JumpPower = 200
  40. char.Humanoid.Jump = true
  41.  
  42. local plane = Instance.new('SpecialMesh', plane)
  43. plane.MeshType = 'FileMesh'
  44. plane.MeshId = 'http://www.roblox.com/asset/?id=498194022' --498194022
  45. plane.TextureId = 'http://www.roblox.com/asset/?id=498194025'
  46. plane.Scale = Vector3.new(0.2, 0.2, 0.2)
  47.  
  48.  
  49. planesound=Instance.new('Sound', char.Torso)
  50. planesound.SoundId = 'rbxassetid://439771510'
  51. planesound.Volume = 1
  52. planesound.Looped = true
  53.  
  54. pullup=Instance.new('Sound', char.Torso)
  55. pullup.SoundId = 'rbxassetid://144560522'
  56. pullup.Volume = 10
  57. pullup.Looped = true
  58.  
  59. alarm=Instance.new('Sound', char.Torso)
  60. alarm.SoundId = 'rbxassetid://384231761'
  61. alarm.Volume = 10
  62. alarm.Looped = true
  63.  
  64.  
  65. screech=Instance.new('Sound', char.Torso)
  66. screech.SoundId = 'rbxassetid://262353320'
  67. screech.Volume = 10
  68.  
  69. st=Instance.new('Sound', char.Torso)
  70. st.SoundId = 'rbxassetid://131353021'
  71. st.Volume = 20
  72.  
  73. allahuakbar=Instance.new('Sound', char)
  74. allahuakbar.SoundId = 'rbxassetid://293292782'
  75. allahuakbar.Volume = 10
  76.  
  77. moosic=Instance.new('Sound', char)
  78. moosic.SoundId = 'rbxassetid://504630746'
  79. moosic.Volume = 2
  80.  
  81. allahuakbar2=Instance.new('Sound', char)
  82. allahuakbar2.SoundId = 'rbxassetid://446824013' --446824013
  83. allahuakbar2.Volume = 1
  84.  
  85.  
  86. planesound:Play()
  87.  
  88. explosionf=Instance.new('ParticleEmitter', char.Torso)
  89. explosionf.Texture = 'http://www.roblox.com/asset/?id=244514357'
  90. explosionf.Size = NumberSequence.new(19)
  91. explosionf.Rate = 1000
  92. explosionf.LightEmission = 0.4
  93. explosionf.Lifetime = NumberRange.new(1)
  94. explosionf.VelocitySpread = 360
  95. explosionf.Enabled = false
  96.  
  97.  
  98.  
  99. char.Torso.Transparency = 1
  100. char.Head.Transparency = 1
  101. char['Left Arm'].Transparency = 1
  102. char['Right Arm'].Transparency = 1
  103. char['Left Leg'].Transparency = 1
  104. char['Right Leg'].Transparency = 1
  105.  
  106. repeat wait(1)until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer:GetMouse() and game:FindService("Workspace") and game.Workspace.CurrentCamera
  107. local Me = game:GetService("Players").LocalPlayer
  108. local Char = Me.Character
  109. local Mouse = Me:GetMouse()
  110. local Cam = Workspace.CurrentCamera
  111. local Stop = false
  112. local Version = 0
  113. local MaxSpeed = 8
  114. local Speed = 8
  115. local Keys = {}
  116. local Force = 10000 -- 10000 = Fly, 1000000 = Noclip
  117.  
  118. local Fly, Rot = Char.Torso:FindFirstChild("LMMFly"), Char.Torso:FindFirstChild("LMMRot")
  119. if Fly then Fly:Destroy() end if Rot then Rot:Destroy() end
  120. Fly = Instance.new("BodyPosition", Char.Torso) Fly.Name = "LMMFly" Fly.maxForce = Vector3.new(math.huge, math.huge, math.huge) Fly.P = Force Fly.position = Char.Torso.Position
  121. Rot = Instance.new("BodyGyro", Char.Torso) Rot.Name = "LMMRot" Rot.maxTorque = Vector3.new(math.huge, math.huge, math.huge) Rot.P = Force Rot.cframe = Cam.CoordinateFrame
  122.  
  123. local Thread,Old = Version, nil
  124. Char.Humanoid.PlatformStand = true
  125.  
  126. function StopFly()
  127. Version = Version + 1 Stop = true Char.Humanoid.PlatformStand = false Fly:Destroy() Rot:Destroy() script.Disabled = true script:Destroy()
  128. end
  129.  
  130. Char.ChildAdded:connect(function(Obj) wait()
  131. if Obj.Name == "LM".."MFlyStop" then
  132. Obj:Destroy()
  133. StopFly()
  134. end
  135. end)
  136.  
  137. coroutine.wrap(function() while Thread == Version and Stop == false do
  138. local Vectoring = Rot.cframe - Rot.cframe.p + Fly.position
  139.  
  140. if Keys[string.char(48)] then Speed = 1 end
  141. if Keys.w then Vectoring = Vectoring + Cam.CoordinateFrame.lookVector * Speed end
  142. if Keys.s then Vectoring = Vectoring - Cam.CoordinateFrame.lookVector * Speed end
  143. if Keys.d then Vectoring = Vectoring * CFrame.new(Speed,0,0) end
  144. if Keys.a then Vectoring = Vectoring * CFrame.new(-Speed,0,0) end
  145. if Keys.e or Keys[" "] then Vectoring = Vectoring * CFrame.new(0,Speed,0) end
  146. if Keys.q then Vectoring = Vectoring * CFrame.new(0,-Speed,0) end
  147. if Keys.x then StopFly() end
  148.  
  149. if Old ~= Vectoring then
  150. Fly.position = Vectoring.p
  151. Old = Vectoring
  152. Speed = math.min(Speed + Speed*0.025,MaxSpeed)
  153. else
  154. Speed = 1;
  155. end
  156. Rot.cframe = Cam.CoordinateFrame
  157. wait(0.01)
  158. end end)()
  159.  
  160. Mouse.KeyDown:connect(function(Key)
  161. Keys[Key] = true
  162. end)
  163. Mouse.KeyUp:connect(function(Key)
  164. Keys[Key] = false
  165. end)
  166.  
  167.  
  168. mouse.KeyDown:connect(function(key)
  169. if key == "c" then
  170. planesound:Stop()
  171. screech:Play()
  172. allahuakbar2:Stop()
  173. pullup:Stop()
  174. explosionf.Enabled = false
  175. alarm:Stop()
  176. local e = Instance.new("Smoke", char.Torso)
  177. e.Size = 20
  178. char.Torso.Anchored = false
  179. wait(3)
  180. e.Enabled = false
  181.  
  182. end
  183. end)
  184.  
  185. mouse.KeyDown:connect(function(key)
  186. if key == "v" then
  187. explosionf.Enabled = true
  188. pullup:Play()
  189. alarm:Play()
  190. explosionf.Size = NumberSequence.new(5)
  191. end
  192. end)
  193.  
  194. mouse.KeyDown:connect(function(key)
  195. if key == "b" then
  196. moosic:Play()
  197. end
  198. end)
  199.  
  200. mouse.KeyDown:connect(function(key)
  201. if key == "n" then
  202. moosic:Stop()
  203. end
  204. end)
  205.  
  206. mouse.KeyDown:connect(function(key)
  207. if key == "z" then
  208. planesound:Play()
  209. screech:Stop()
  210. char.Torso.Anchored = false
  211. st:Play()
  212. allahuakbar2:Stop()
  213. pullup:Stop()
  214. explosionf.Enabled = false
  215. alarm:Stop()
  216.  
  217.  
  218. end
  219. end)
  220.  
  221. Enabled = false
  222. function onTouched(hit)
  223. if Enabled then
  224. return
  225. end
  226. Enabled=false
  227. local e = Instance.new("Explosion")
  228. e.BlastRadius = 260-- How much ground the explosion covers --
  229. e.BlastPressure = 51-- How powerful the explosion is --
  230. e.Parent = char.Torso -- Don't change this!
  231. e.Position = char.Torso.Position -- Don't change this!
  232. allahuakbar:Play()
  233. explosionf.Size = NumberSequence.new(50)
  234. explosionf.Speed = NumberRange.new(30)
  235. explosionf.Enabled = true
  236. char.Torso.Anchored = true
  237. explosionf.Lifetime = NumberRange.new(0.25)
  238. allahuakbar2:Play()
  239. allahuakbar2.Pitch = 0
  240. pullup:Stop()
  241. alarm:Stop()
  242. wait(1.25)
  243. allahuakbar2.Pitch = 0
  244. explosionf.Enabled = false
  245. planesound:Stop()
  246. wait(0.50)
  247. plr = game.Players.LocalPlayer.Name
  248. for i,v in pairs(game.Players:GetChildren()) do
  249.        if v.Name ~= plr then
  250. game:GetService("Chat"):Chat(v.Character.Head, "ALLAHU AKBAR!!! HEIL PLANE CRASHES!!!", Enum.ChatColor.Blue)
  251. AKBAR=Instance.new('Sound', v.Character.Head)
  252. AKBAR.SoundId = 'rbxassetid://396873260'
  253. AKBAR.Volume = 15
  254. AKBAR.Pitch = 0.25
  255. AKBAR.Looped = false
  256. AKBAR:Play()
  257. wait(2.6)
  258. AKBAR:Play()
  259.  
  260. end
  261. end
  262.  
  263. end
  264. char.Torso.Touched:connect(onTouched)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement