Advertisement
ericdesouza

Untitled

Feb 10th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 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(360),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=742044666' --593405630
  45. plane.TextureId = 'http://www.roblox.com/asset/?id=742045003' --593406350
  46. plane.Scale = Vector3.new(1, 1, 1)
  47.  
  48.  
  49. planesound=Instance.new('Sound', char.Torso)
  50. planesound.SoundId = 'rbxassetid://176651233'
  51. planesound.Volume = 100
  52. planesound.Looped = true
  53.  
  54. pullup=Instance.new('Sound', char.Torso)
  55. pullup.SoundId = 'rbxassetid://511715134'
  56. pullup.Volume = 100
  57. pullup.Looped = true
  58.  
  59. alarm=Instance.new('Sound', char.Torso)
  60. alarm.SoundId = 'rbxassetid://257001320'
  61. alarm.Volume = 100
  62. alarm.Looped = true
  63.  
  64.  
  65. screech=Instance.new('Sound', char.Torso)
  66. screech.SoundId = 'rbxassetid://257001341'
  67. screech.Volume = 100
  68.  
  69. st=Instance.new('Sound', char.Torso)
  70. st.SoundId = 'rbxassetid://447225089'
  71. st.Volume = 100
  72.  
  73. allahuakbar=Instance.new('Sound', char)
  74. allahuakbar.SoundId = 'rbxassetid://1335693622'
  75. allahuakbar.Volume = 100
  76.  
  77. moosic=Instance.new('Sound', char)
  78. moosic.SoundId = 'rbxassetid://504630746'
  79. moosic.Volume = 100
  80.  
  81. allahuakbar2=Instance.new('Sound', char)
  82. allahuakbar2.SoundId = 'rbxassetid://161451748' --161451748
  83. allahuakbar2.Volume = 100
  84.  
  85.  
  86. planesound:Play()
  87.  
  88. explosionf=Instance.new('ParticleEmitter', char.Torso)
  89. explosionf.Texture = 'http://www.roblox.com/asset/?id=164417280'
  90. explosionf.Size = NumberSequence.new(19)
  91. explosionf.Rate = 10000
  92. explosionf.LightEmission = 0.4
  93. explosionf.Lifetime = NumberRange.new(30)
  94. explosionf.VelocitySpread = 3600
  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] = false
  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. end
  218. char.Torso.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement