Advertisement
Josemmoya

911 whats ur emergency

Jan 24th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.80 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. -- by fr34ky;
  88. local char = owner.Character
  89.  
  90.  
  91. local player = owner
  92. repeat wait() until player.Character.Humanoid
  93. local humanoid = player.Character.Humanoid
  94.  
  95. local weld = Instance.new("Weld",char.Torso)
  96. weld.Part0 = char.Torso
  97.  
  98. local plane = Instance.new("Part",char.Torso)
  99. plane.Anchored = false
  100. plane.CanCollide = false
  101. plane.Size = Vector3.new(3,2,6)
  102. plane.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  103. weld.Part1 = plane
  104. weld.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,math.rad(270),0)
  105.  
  106. local pf = Instance.new("ForceField")
  107. pf.Parent = owner.Character
  108.  
  109. for i,v in pairs(char.Torso:GetChildren()) do
  110. if v.ClassName == 'Decal' then
  111. v:Destroy()
  112. end
  113. end
  114. for i,v in pairs(char:GetChildren()) do
  115. if v.ClassName == 'Hat' then
  116. v:Destroy()
  117. end
  118. end
  119. for i,v in pairs(char.Head:GetChildren()) do
  120. if v.ClassName == 'Decal' then
  121. v:Destroy()
  122. end
  123. end
  124.  
  125. char.Humanoid.JumpPower = 200
  126. char.Humanoid.Jump = true
  127.  
  128. local plane = Instance.new('SpecialMesh', plane)
  129. plane.MeshType = 'FileMesh'
  130. plane.MeshId = 'http://www.roblox.com/asset/?id=498194022' --498194022
  131. plane.TextureId = 'http://www.roblox.com/asset/?id=498194025'
  132. plane.Scale = Vector3.new(0.2, 0.2, 0.2)
  133.  
  134.  
  135. planesound=Instance.new('Sound', char.Torso)
  136. planesound.SoundId = 'rbxassetid://439771510'
  137. planesound.Volume = 1
  138. planesound.Looped = true
  139.  
  140. pullup=Instance.new('Sound', char.Torso)
  141. pullup.SoundId = 'rbxassetid://144560522'
  142. pullup.Volume = 10
  143. pullup.Looped = true
  144.  
  145. alarm=Instance.new('Sound', char.Torso)
  146. alarm.SoundId = 'rbxassetid://384231761'
  147. alarm.Volume = 10
  148. alarm.Looped = true
  149.  
  150.  
  151. screech=Instance.new('Sound', char.Torso)
  152. screech.SoundId = 'rbxassetid://262353320'
  153. screech.Volume = 10
  154.  
  155. st=Instance.new('Sound', char.Torso)
  156. st.SoundId = 'rbxassetid://131353021'
  157. st.Volume = 20
  158.  
  159. allahuakbar=Instance.new('Sound', char)
  160. allahuakbar.SoundId = 'rbxassetid://293292782'
  161. allahuakbar.Volume = 10
  162.  
  163. moosic=Instance.new('Sound', char)
  164. moosic.SoundId = 'rbxassetid://504630746'
  165. moosic.Volume = 2
  166.  
  167. allahuakbar2=Instance.new('Sound', char)
  168. allahuakbar2.SoundId = 'rbxassetid://446824013' --446824013
  169. allahuakbar2.Volume = 1
  170.  
  171.  
  172. planesound:Play()
  173.  
  174. explosionf=Instance.new('ParticleEmitter', char.Torso)
  175. explosionf.Texture = 'http://www.roblox.com/asset/?id=244514357'
  176. explosionf.Size = NumberSequence.new(19)
  177. explosionf.Rate = 1000
  178. explosionf.LightEmission = 0.4
  179. explosionf.Lifetime = NumberRange.new(1)
  180. explosionf.VelocitySpread = 360
  181. explosionf.Enabled = false
  182.  
  183.  
  184.  
  185. char.Torso.Transparency = 1
  186. char.Head.Transparency = 1
  187. char['Left Arm'].Transparency = 1
  188. char['Right Arm'].Transparency = 1
  189. char['Left Leg'].Transparency = 1
  190. char['Right Leg'].Transparency = 1
  191.  
  192. repeat wait(1)until owner and owner.Character and owner and game:FindService("Workspace") and game.Workspace.CurrentCamera
  193. local Me = owner
  194. local Char = Me.Character
  195. local Cam = Workspace.CurrentCamera
  196. local Stop = false
  197. local Version = 0
  198. local MaxSpeed = 8
  199. local Speed = 8
  200. local Keys = {}
  201. local Force = 10000 -- 10000 = Fly, 1000000 = Noclip
  202.  
  203. local Fly, Rot = Char.Torso:FindFirstChild("LMMFly"), Char.Torso:FindFirstChild("LMMRot")
  204. if Fly then Fly:Destroy() end if Rot then Rot:Destroy() end
  205. 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
  206. 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
  207.  
  208. local Thread,Old = Version, nil
  209. Char.Humanoid.PlatformStand = true
  210.  
  211. function StopFly()
  212. Version = Version + 1 Stop = true Char.Humanoid.PlatformStand = false Fly:Destroy() Rot:Destroy() script.Disabled = true script:Destroy()
  213. end
  214.  
  215. Char.ChildAdded:connect(function(Obj) wait()
  216. if Obj.Name == "LM".."MFlyStop" then
  217. Obj:Destroy()
  218. StopFly()
  219. end
  220. end)
  221.  
  222. coroutine.wrap(function() while Thread == Version and Stop == false do
  223. local Vectoring = Rot.cframe - Rot.cframe.p + Fly.position
  224.  
  225. if Keys[string.char(48)] then Speed = 1 end
  226. if Keys.w then Vectoring = Vectoring + Cam.CoordinateFrame.lookVector * Speed end
  227. if Keys.s then Vectoring = Vectoring - Cam.CoordinateFrame.lookVector * Speed end
  228. if Keys.d then Vectoring = Vectoring * CFrame.new(Speed,0,0) end
  229. if Keys.a then Vectoring = Vectoring * CFrame.new(-Speed,0,0) end
  230. if Keys.e or Keys[" "] then Vectoring = Vectoring * CFrame.new(0,Speed,0) end
  231. if Keys.q then Vectoring = Vectoring * CFrame.new(0,-Speed,0) end
  232. if Keys.x then StopFly() end
  233.  
  234. if Old ~= Vectoring then
  235. Fly.position = Vectoring.p
  236. Old = Vectoring
  237. Speed = math.min(Speed + Speed*0.025,MaxSpeed)
  238. else
  239. Speed = 1;
  240. end
  241. Rot.cframe = Cam.CoordinateFrame
  242. wait(0.01)
  243. end end)()
  244.  
  245. Mouse.KeyDown:connect(function(Key)
  246. Keys[Key] = true
  247. end)
  248. Mouse.KeyUp:connect(function(Key)
  249. Keys[Key] = false
  250. end)
  251.  
  252.  
  253. mouse.KeyDown:connect(function(key)
  254. if key == "c" then
  255. planesound:Stop()
  256. screech:Play()
  257. allahuakbar2:Stop()
  258. pullup:Stop()
  259. explosionf.Enabled = false
  260. alarm:Stop()
  261. local e = Instance.new("Smoke", char.Torso)
  262. e.Size = 20
  263. char.Torso.Anchored = false
  264. wait(3)
  265. e.Enabled = false
  266.  
  267. end
  268. end)
  269.  
  270. mouse.KeyDown:connect(function(key)
  271. if key == "v" then
  272. explosionf.Enabled = true
  273. pullup:Play()
  274. alarm:Play()
  275. explosionf.Size = NumberSequence.new(5)
  276. end
  277. end)
  278.  
  279. mouse.KeyDown:connect(function(key)
  280. if key == "b" then
  281. moosic:Play()
  282. end
  283. end)
  284.  
  285. mouse.KeyDown:connect(function(key)
  286. if key == "n" then
  287. moosic:Stop()
  288. end
  289. end)
  290.  
  291. mouse.KeyDown:connect(function(key)
  292. if key == "z" then
  293. planesound:Play()
  294. screech:Stop()
  295. char.Torso.Anchored = false
  296. st:Play()
  297. allahuakbar2:Stop()
  298. pullup:Stop()
  299. explosionf.Enabled = false
  300. alarm:Stop()
  301.  
  302.  
  303. end
  304. end)
  305.  
  306. Enabled = false
  307. function onTouched(hit)
  308. if Enabled then
  309. return
  310. end
  311. Enabled=false
  312. local e = Instance.new("Explosion")
  313. e.BlastRadius = 260-- How much ground the explosion covers --
  314. e.BlastPressure = 51-- How powerful the explosion is --
  315. e.Parent = char.Torso -- Don't change this!
  316. e.Position = char.Torso.Position -- Don't change this!
  317. allahuakbar:Play()
  318. explosionf.Size = NumberSequence.new(50)
  319. explosionf.Speed = NumberRange.new(30)
  320. explosionf.Enabled = true
  321. char.Torso.Anchored = true
  322. explosionf.Lifetime = NumberRange.new(0.25)
  323. allahuakbar2:Play()
  324. allahuakbar2.Pitch = 0
  325. pullup:Stop()
  326. alarm:Stop()
  327. wait(1.25)
  328. allahuakbar2.Pitch = 0
  329. explosionf.Enabled = false
  330. planesound:Stop()
  331. wait(0.50)
  332. plr = owner.Name
  333. for i,v in pairs(game.Players:GetChildren()) do
  334. if v.Name ~= plr then
  335. game:GetService("Chat"):Chat(v.Character.Head, "ALLAHU AKBAR!! HEIL PLANE CRASHES!", Enum.ChatColor.Blue)
  336. AKBAR=Instance.new('Sound', v.Character.Head)
  337. AKBAR.SoundId = 'rbxassetid://396873260'
  338. AKBAR.Volume = 15
  339. AKBAR.Pitch = 0.25
  340. AKBAR.Looped = false
  341. AKBAR:Play()
  342. wait(2.6)
  343. AKBAR:Play()
  344.  
  345. end
  346. end
  347.  
  348. end
  349. char.Torso.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement