pasterXD

Untitled

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