Advertisement
Josemmoya

dsdsadsads

Jan 25th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.79 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=693526472' --498194022
  131. plane.TextureId = 'http://www.roblox.com/asset/?id=3973208'
  132. plane.Scale = Vector3.new(9,9,9)
  133.  
  134.  
  135. planesound=Instance.new('Sound', char.Torso)
  136. planesound.SoundId = 'rbxassetid://314637764'
  137. planesound.Volume = 1
  138. planesound.Looped = true
  139.  
  140. pullup=Instance.new('Sound', char.Torso)
  141. pullup.SoundId = 'rbxassetid://144560522'
  142. pullup.Volume = 0
  143. pullup.Looped = true
  144.  
  145. alarm=Instance.new('Sound', char.Torso)
  146. alarm.SoundId = 'rbxassetid://384231761'
  147. alarm.Volume = 00
  148. alarm.Looped = true
  149.  
  150.  
  151. screech=Instance.new('Sound', char.Torso)
  152. screech.SoundId = 'rbxassetid://262353320'
  153. screech.Volume = 0
  154.  
  155. st=Instance.new('Sound', char.Torso)
  156. st.SoundId = 'rbxassetid://131353021'
  157. st.Volume = 0
  158.  
  159. allahuakbar=Instance.new('Sound', char)
  160. allahuakbar.SoundId = 'rbxassetid://1474367957'
  161. allahuakbar.Volume = 10
  162.  
  163. moosic=Instance.new('Sound', char)
  164. moosic.SoundId = 'rbxassetid://1904501177'
  165. moosic.Volume = 10
  166. moosic:Play()
  167.  
  168. allahuakbar2=Instance.new('Sound', char)
  169. allahuakbar2.SoundId = 'rbxassetid://446824013' --446824013
  170. allahuakbar2.Volume = 0
  171.  
  172.  
  173. planesound:Play()
  174.  
  175. explosionf=Instance.new('ParticleEmitter', char.Torso)
  176. explosionf.Texture = 'http://www.roblox.com/asset/?id=1259511021'
  177. explosionf.Size = NumberSequence.new(19)
  178. explosionf.Rate = 1000
  179. explosionf.LightEmission = 0.4
  180. explosionf.Lifetime = NumberRange.new(1)
  181. explosionf.VelocitySpread = 360
  182. explosionf.Enabled = false
  183.  
  184.  
  185.  
  186. char.Torso.Transparency = 1
  187. char.Head.Transparency = 1
  188. char['Left Arm'].Transparency = 1
  189. char['Right Arm'].Transparency = 1
  190. char['Left Leg'].Transparency = 1
  191. char['Right Leg'].Transparency = 1
  192.  
  193. repeat wait(1)until owner and owner.Character and owner and game:FindService("Workspace") and game.Workspace.CurrentCamera
  194. local Me = owner
  195. local Char = Me.Character
  196. local Cam = Workspace.CurrentCamera
  197. local Stop = false
  198. local Version = 0
  199. local MaxSpeed = 8
  200. local Speed = 8
  201. local Keys = {}
  202. local Force = 10000 -- 10000 = Fly, 1000000 = Noclip
  203.  
  204. local Fly, Rot = Char.Torso:FindFirstChild("LMMFly"), Char.Torso:FindFirstChild("LMMRot")
  205. if Fly then Fly:Destroy() end if Rot then Rot:Destroy() end
  206. 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
  207. 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
  208.  
  209. local Thread,Old = Version, nil
  210. Char.Humanoid.PlatformStand = true
  211.  
  212. function StopFly()
  213. Version = Version + 1 Stop = true Char.Humanoid.PlatformStand = false Fly:Destroy() Rot:Destroy() script.Disabled = true script:Destroy()
  214. end
  215.  
  216. Char.ChildAdded:connect(function(Obj) wait()
  217. if Obj.Name == "LM".."MFlyStop" then
  218. Obj:Destroy()
  219. StopFly()
  220. end
  221. end)
  222.  
  223. coroutine.wrap(function() while Thread == Version and Stop == false do
  224. local Vectoring = Rot.cframe - Rot.cframe.p + Fly.position
  225.  
  226. if Keys[string.char(48)] then Speed = 1 end
  227. if Keys.w then Vectoring = Vectoring + Cam.CoordinateFrame.lookVector * Speed end
  228. if Keys.s then Vectoring = Vectoring - Cam.CoordinateFrame.lookVector * Speed end
  229. if Keys.d then Vectoring = Vectoring * CFrame.new(Speed,0,0) end
  230. if Keys.a then Vectoring = Vectoring * CFrame.new(-Speed,0,0) end
  231. if Keys.e or Keys[" "] then Vectoring = Vectoring * CFrame.new(0,Speed,0) end
  232. if Keys.q then Vectoring = Vectoring * CFrame.new(0,-Speed,0) end
  233. if Keys.x then StopFly() end
  234.  
  235. if Old ~= Vectoring then
  236. Fly.position = Vectoring.p
  237. Old = Vectoring
  238. Speed = math.min(Speed + Speed*0.025,MaxSpeed)
  239. else
  240. Speed = 1;
  241. end
  242. Rot.cframe = Cam.CoordinateFrame
  243. wait(0.01)
  244. end end)()
  245.  
  246. Mouse.KeyDown:connect(function(Key)
  247. Keys[Key] = true
  248. end)
  249. Mouse.KeyUp:connect(function(Key)
  250. Keys[Key] = false
  251. end)
  252.  
  253.  
  254. mouse.KeyDown:connect(function(key)
  255. if key == "c" then
  256. planesound:Stop()
  257. screech:Play()
  258. allahuakbar2:Stop()
  259. pullup:Stop()
  260. explosionf.Enabled = false
  261. alarm:Stop()
  262. local e = Instance.new("Smoke", char.Torso)
  263. e.Size = 20
  264. char.Torso.Anchored = false
  265. wait(3)
  266. e.Enabled = false
  267.  
  268. end
  269. end)
  270.  
  271. mouse.KeyDown:connect(function(key)
  272. if key == "v" then
  273. explosionf.Enabled = true
  274. pullup:Play()
  275. alarm:Play()
  276. explosionf.Size = NumberSequence.new(5)
  277. end
  278. end)
  279.  
  280. mouse.KeyDown:connect(function(key)
  281. if key == "b" then
  282. moosic:Play()
  283. end
  284. end)
  285.  
  286. mouse.KeyDown:connect(function(key)
  287. if key == "n" then
  288. moosic:Stop()
  289. end
  290. end)
  291.  
  292. mouse.KeyDown:connect(function(key)
  293. if key == "z" then
  294. planesound:Play()
  295. screech:Stop()
  296. char.Torso.Anchored = false
  297. st:Play()
  298. allahuakbar2:Stop()
  299. pullup:Stop()
  300. explosionf.Enabled = false
  301. alarm:Stop()
  302.  
  303.  
  304. end
  305. end)
  306.  
  307. Enabled = false
  308. function onTouched(hit)
  309. if Enabled then
  310. return
  311. end
  312. Enabled=false
  313. local e = Instance.new("Explosion")
  314. e.BlastRadius = 260-- How much ground the explosion covers --
  315. e.BlastPressure = 51-- How powerful the explosion is --
  316. e.Parent = char.Torso -- Don't change this!
  317. e.Position = char.Torso.Position -- Don't change this!
  318. allahuakbar:Play()
  319. explosionf.Size = NumberSequence.new(50)
  320. explosionf.Speed = NumberRange.new(30)
  321. explosionf.Enabled = true
  322. char.Torso.Anchored = true
  323. explosionf.Lifetime = NumberRange.new(0.25)
  324. allahuakbar2:Play()
  325. allahuakbar2.Pitch = 0
  326. pullup:Stop()
  327. alarm:Stop()
  328. wait(1.25)
  329. allahuakbar2.Pitch = 0
  330. explosionf.Enabled = false
  331. planesound:Stop()
  332. wait(0.50)
  333. plr = owner.Name
  334. for i,v in pairs(game.Players:GetChildren()) do
  335. if v.Name ~= plr then
  336. game:GetService("Chat"):Chat(v.Character.Head, "Despacito", Enum.ChatColor.Blue)
  337. AKBAR=Instance.new('Sound', v.Character.Head)
  338. AKBAR.SoundId = 'rbxassetid://1474367957'
  339. AKBAR.Volume = 0
  340. AKBAR.Pitch = 0.25
  341. AKBAR.Looped = false
  342. AKBAR:Play()
  343. wait(2.6)
  344. AKBAR:Play()
  345.  
  346. end
  347. end
  348.  
  349. end
  350. char.Torso.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement