Advertisement
sIendytubble

plane

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