Advertisement
UnsmilingmanExploits

Void Script builder

May 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = game.Players.LocalPlayer.Character
  89.  
  90.  
  91. local player = game.Players.LocalPlayer
  92. repeat wait() until player.Character.Humanoid
  93. local humanoid = player.Character.Humanoid
  94. local mouse = player:GetMouse()
  95.  
  96. local weld = Instance.new("Weld",char.Torso)
  97. weld.Part0 = char.Torso
  98.  
  99. local plane = Instance.new("Part",char.Torso)
  100. plane.Anchored = false
  101. plane.CanCollide = false
  102. plane.Size = Vector3.new(3,2,6)
  103. plane.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  104. weld.Part1 = plane
  105. weld.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,math.rad(270),0)
  106.  
  107. local pf = Instance.new("ForceField")
  108. pf.Parent = game.Players.LocalPlayer.Character
  109.  
  110. for i,v in pairs(char.Torso:GetChildren()) do
  111. if v.ClassName == 'Decal' then
  112. v:Destroy()
  113. end
  114. end
  115. for i,v in pairs(char:GetChildren()) do
  116. if v.ClassName == 'Hat' then
  117. v:Destroy()
  118. end
  119. end
  120. for i,v in pairs(char.Head:GetChildren()) do
  121. if v.ClassName == 'Decal' then
  122. v:Destroy()
  123. end
  124. end
  125.  
  126. char.Humanoid.JumpPower = 200
  127. char.Humanoid.Jump = true
  128.  
  129. local plane = Instance.new('SpecialMesh', plane)
  130. plane.MeshType = 'FileMesh'
  131. plane.MeshId = 'http://www.roblox.com/asset/?id=498194022' --498194022
  132. plane.TextureId = 'http://www.roblox.com/asset/?id=498194025'
  133. plane.Scale = Vector3.new(0.2, 0.2, 0.2)
  134.  
  135.  
  136. planesound=Instance.new('Sound', char.Torso)
  137. planesound.SoundId = 'rbxassetid://439771510'
  138. planesound.Volume = 1
  139. planesound.Looped = true
  140.  
  141. pullup=Instance.new('Sound', char.Torso)
  142. pullup.SoundId = 'rbxassetid://144560522'
  143. pullup.Volume = 10
  144. pullup.Looped = true
  145.  
  146. alarm=Instance.new('Sound', char.Torso)
  147. alarm.SoundId = 'rbxassetid://384231761'
  148. alarm.Volume = 10
  149. alarm.Looped = true
  150.  
  151.  
  152. screech=Instance.new('Sound', char.Torso)
  153. screech.SoundId = 'rbxassetid://262353320'
  154. screech.Volume = 10
  155.  
  156. st=Instance.new('Sound', char.Torso)
  157. st.SoundId = 'rbxassetid://131353021'
  158. st.Volume = 20
  159.  
  160. allahuakbar=Instance.new('Sound', char)
  161. allahuakbar.SoundId = 'rbxassetid://293292782'
  162. allahuakbar.Volume = 10
  163.  
  164. moosic=Instance.new('Sound', char)
  165. moosic.SoundId = 'rbxassetid://504630746'
  166. moosic.Volume = 2
  167.  
  168. allahuakbar2=Instance.new('Sound', char)
  169. allahuakbar2.SoundId = 'rbxassetid://446824013' --446824013
  170. allahuakbar2.Volume = 1
  171.  
  172.  
  173. planesound:Play()
  174.  
  175. explosionf=Instance.new('ParticleEmitter', char.Torso)
  176. explosionf.Texture = 'http://www.roblox.com/asset/?id=244514357'
  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 game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer:GetMouse() and game:FindService("Workspace") and game.Workspace.CurrentCamera
  194. local Me = game:GetService("Players").LocalPlayer
  195. local Char = Me.Character
  196. local Mouse = Me:GetMouse()
  197. local Cam = Workspace.CurrentCamera
  198. local Stop = false
  199. local Version = 0
  200. local MaxSpeed = 8
  201. local Speed = 8
  202. local Keys = {}
  203. local Force = 10000 -- 10000 = Fly, 1000000 = Noclip
  204.  
  205. local Fly, Rot = Char.Torso:FindFirstChild("LMMFly"), Char.Torso:FindFirstChild("LMMRot")
  206. if Fly then Fly:Destroy() end if Rot then Rot:Destroy() end
  207. 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
  208. 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
  209.  
  210. local Thread,Old = Version, nil
  211. Char.Humanoid.PlatformStand = true
  212.  
  213. function StopFly()
  214. Version = Version + 1 Stop = true Char.Humanoid.PlatformStand = false Fly:Destroy() Rot:Destroy() script.Disabled = true script:Destroy()
  215. end
  216.  
  217. Char.ChildAdded:connect(function(Obj) wait()
  218. if Obj.Name == "LM".."MFlyStop" then
  219. Obj:Destroy()
  220. StopFly()
  221. end
  222. end)
  223.  
  224. coroutine.wrap(function() while Thread == Version and Stop == false do
  225. local Vectoring = Rot.cframe - Rot.cframe.p + Fly.position
  226.  
  227. if Keys[string.char(48)] then Speed = 1 end
  228. if Keys.w then Vectoring = Vectoring + Cam.CoordinateFrame.lookVector * Speed end
  229. if Keys.s then Vectoring = Vectoring - Cam.CoordinateFrame.lookVector * Speed end
  230. if Keys.d then Vectoring = Vectoring * CFrame.new(Speed,0,0) end
  231. if Keys.a then Vectoring = Vectoring * CFrame.new(-Speed,0,0) end
  232. if Keys.e or Keys[" "] then Vectoring = Vectoring * CFrame.new(0,Speed,0) end
  233. if Keys.q then Vectoring = Vectoring * CFrame.new(0,-Speed,0) end
  234. if Keys.x then StopFly() end
  235.  
  236. if Old ~= Vectoring then
  237. Fly.position = Vectoring.p
  238. Old = Vectoring
  239. Speed = math.min(Speed + Speed*0.025,MaxSpeed)
  240. else
  241. Speed = 1;
  242. end
  243. Rot.cframe = Cam.CoordinateFrame
  244. wait(0.01)
  245. end end)()
  246.  
  247. Mouse.KeyDown:connect(function(Key)
  248. Keys[Key] = true
  249. end)
  250. Mouse.KeyUp:connect(function(Key)
  251. Keys[Key] = false
  252. end)
  253.  
  254.  
  255. mouse.KeyDown:connect(function(key)
  256. if key == "c" then
  257. planesound:Stop()
  258. screech:Play()
  259. allahuakbar2:Stop()
  260. pullup:Stop()
  261. explosionf.Enabled = false
  262. alarm:Stop()
  263. local e = Instance.new("Smoke", char.Torso)
  264. e.Size = 20
  265. char.Torso.Anchored = false
  266. wait(3)
  267. e.Enabled = false
  268.  
  269. end
  270. end)
  271.  
  272. mouse.KeyDown:connect(function(key)
  273. if key == "v" then
  274. explosionf.Enabled = true
  275. pullup:Play()
  276. alarm:Play()
  277. explosionf.Size = NumberSequence.new(5)
  278. end
  279. end)
  280.  
  281. mouse.KeyDown:connect(function(key)
  282. if key == "b" then
  283. moosic:Play()
  284. end
  285. end)
  286.  
  287. mouse.KeyDown:connect(function(key)
  288. if key == "n" then
  289. moosic:Stop()
  290. end
  291. end)
  292.  
  293. mouse.KeyDown:connect(function(key)
  294. if key == "z" then
  295. planesound:Play()
  296. screech:Stop()
  297. char.Torso.Anchored = false
  298. st:Play()
  299. allahuakbar2:Stop()
  300. pullup:Stop()
  301. explosionf.Enabled = false
  302. alarm:Stop()
  303.  
  304.  
  305. end
  306. end)
  307.  
  308. Enabled = false
  309. function onTouched(hit)
  310. if Enabled then
  311. return
  312. end
  313. Enabled=false
  314. local e = Instance.new("Explosion")
  315. e.BlastRadius = 260-- How much ground the explosion covers --
  316. e.BlastPressure = 51-- How powerful the explosion is --
  317. e.Parent = char.Torso -- Don't change this!
  318. e.Position = char.Torso.Position -- Don't change this!
  319. allahuakbar:Play()
  320. explosionf.Size = NumberSequence.new(50)
  321. explosionf.Speed = NumberRange.new(30)
  322. explosionf.Enabled = true
  323. char.Torso.Anchored = true
  324. explosionf.Lifetime = NumberRange.new(0.25)
  325. allahuakbar2:Play()
  326. allahuakbar2.Pitch = 0
  327. pullup:Stop()
  328. alarm:Stop()
  329. wait(1.25)
  330. allahuakbar2.Pitch = 0
  331. explosionf.Enabled = false
  332. planesound:Stop()
  333. wait(0.50)
  334. plr = game.Players.LocalPlayer.Name
  335. for i,v in pairs(game.Players:GetChildren()) do
  336. if v.Name ~= plr then
  337. game:GetService("Chat"):Chat(v.Character.Head, "ALLAHU AKBAR!! HEIL PLANE CRASHES!", Enum.ChatColor.Blue)
  338. AKBAR=Instance.new('Sound', v.Character.Head)
  339. AKBAR.SoundId = 'rbxassetid://396873260'
  340. AKBAR.Volume = 15
  341. AKBAR.Pitch = 0.25
  342. AKBAR.Looped = false
  343. AKBAR:Play()
  344. wait(2.6)
  345. AKBAR:Play()
  346.  
  347. end
  348. end
  349.  
  350. end
  351. char.Torso.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement