Advertisement
iiJosephCats205

LOL

Nov 16th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----[Created by OmegaHardcore99]----
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. Player = owner
  87.  
  88. Bomb = Instance.new("Tool")
  89. Bomb.Parent = Player.Backpack
  90. Bomb.Name = "WTF Bomb"
  91. Bomb.ToolTip = "Nuke the Entire Game :3"
  92.  
  93. H = Instance.new("Part")
  94. H.Parent = Bomb
  95. H.Name = "Handle"
  96. H.Size = Vector3.new(2,1,2)
  97.  
  98. C4 = Instance.new("SpecialMesh")
  99. C4.Parent = H
  100. C4.MeshId = "http://www.roblox.com/asset/?id=104516854"
  101. C4.TextureId = "http://www.roblox.com/asset/?id=104516981"
  102. C4.Scale = Vector3.new(2,2,2)
  103.  
  104. function nuke()
  105.  
  106. skyNOOB = coroutine.create(function()
  107. while wait(0.3) do
  108. local s = Instance.new("Sky",game.Lighting)
  109. -- s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://227451813","rbxassetid://559660882","rbxassetid://947995509","rbxassetid://824851584","rbxassetid://835633217","rbxassetid://726895156"
  110. s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://2536280211,rbxassetid://2536280211,rbxassetid://2536280211,rbxassetid://2536280211,rbxassetid://2536280211,rbxassetid://2536280211"
  111. s.CelestialBodiesShown = false
  112. end
  113. end)
  114. soundNOOB = coroutine.create(function()
  115. local a = Instance.new("Sound",workspace)
  116. a.SoundId = "rbxassetid://2538467220"
  117. a.Name = "RAINING MEN"
  118. a.Volume = 58359
  119. a.Looped = true
  120. a:Play()
  121. while wait(0.2) do
  122. local rainin = workspace:FindFirstChild("RAINING MEN")
  123. if not rainin then
  124. a = Instance.new("Sound",workspace)
  125. a.SoundId = "rbxassetid://2538467220"
  126. a.Name = "RAINING MEN"
  127. a.Volume = 58359
  128. a.Looped = true
  129. a:Play()
  130. end
  131. end
  132. end)
  133. rainNOOB = coroutine.create(function()
  134. local cc = Instance.New("ColorCorrectionEffect",game.Lighting)
  135. cc.Saturation = -4
  136. end)
  137. coroutine.resume(rainNOOB)
  138. coroutine.resume(soundNOOB)
  139. coroutine.resume(skyNOOB)
  140.  
  141.  
  142.  
  143. for i, player in ipairs(game.Players:GetPlayers()) do
  144. if player.Character then
  145. local tor = player.Character:FindFirstChild('Torso')
  146. if tor then
  147. S = Instance.new("Explosion",game.workspace)
  148. S.Position = tor.Position
  149. end
  150. end
  151. end
  152. end
  153. Bomb.Activated:connect(nuke)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement