Advertisement
speedyfox66

im sorry

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