Advertisement
Vintage-Furry

NUKE IT ALLL

Aug 22nd, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.26 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,s)game,owner=x,x.Players.LocalPlayer end
  6. local Model = Instance.new("Model",workspace)
  7. local Cloud1 = Instance.new("Part")
  8. local Cloud2 = Instance.new("Part")
  9. local Cloud1Mesh = Instance.new("SpecialMesh")
  10. local Cloud2Mesh = Instance.new("SpecialMesh")
  11. local Sound = Instance.new("Sound",workspace)
  12. local sky = Instance.new("Sky")
  13. NUKE_COLOR = 24 --Only BrickColor codes.
  14. CLOUD_TRANSPARENCY = 0.25
  15.  
  16. wait(1.5)
  17.  
  18. function radiation(hit)
  19. local h = hit.Parent:findFirstChild("Humanoid")
  20. local DAMAGE = 10
  21. if h~=nil then
  22. h.WalkSpeed = 5
  23. h.Parent["Right Leg"]:Destroy()
  24. h.Parent["Left Arm"]:Destroy()
  25. for i =1,h.MaxHealth do
  26. h.Health = h.Health - DAMAGE
  27. wait(1)
  28. end
  29. end
  30. end
  31. function unanchor (m)
  32. for _,i in pairs (m:GetChildren()) do
  33. if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
  34. -- i.Anchored = false
  35. local Fire = Instance.new("Fire")
  36. Fire.Parent = i
  37. Fire.Size = math.random(5,10)
  38. i.Material = "CorrodedMetal"
  39. i:BreakJoints()
  40. i.BrickColor = BrickColor.new(26)
  41. i.Touched:connect(radiation)
  42.  
  43. else
  44. unanchor(i)
  45. end
  46. end
  47. end
  48. unanchor(game.Workspace)
  49.  
  50. Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
  51. Sound.PlaybackSpeed = 0.2
  52. Sound.Playing = true
  53. Sound.Volume = 10
  54.  
  55. Model.Name = "Mushroom Cloud"
  56. Cloud1.Parent = Model
  57. Cloud1.Anchored = true
  58. Cloud1.CanCollide = false
  59. Cloud1.Locked = true
  60. Cloud1Mesh.Parent = Cloud1
  61. Cloud1Mesh.MeshType = "FileMesh"
  62. Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  63. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
  64. Cloud2.Parent = Model
  65. Cloud2.Anchored = true
  66. Cloud2.CanCollide = false
  67. Cloud2.Locked = true
  68. Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
  69. Cloud2Mesh.Parent = Cloud2
  70. Cloud2Mesh.MeshType = "FileMesh"
  71. Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  72. Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
  73. Cloud1.Transparency = CLOUD_TRANSPARENCY
  74. Cloud2.Transparency = CLOUD_TRANSPARENCY
  75. Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
  76. Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
  77. sky.Parent = game.Lighting
  78. sky.Name = "NukeSky"
  79. sky.CelestialBodiesShown = true
  80. sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
  81. sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
  82. sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
  83. sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
  84. sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
  85. sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
  86. explosion = Instance.new("Explosion")
  87. explosion.Parent = game.Workspace
  88. explosion.BlastRadius = 9999999999999
  89. explosion.BlastPressure = 10000000
  90. game.Lighting.Brightness = 999
  91. game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
  92. wait (1) --Fireball
  93. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
  94. wait (0.25)
  95. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
  96. wait (0.25)
  97. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
  98. wait (0.25)
  99. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
  100. wait (0.25)
  101. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
  102. wait (0.25)
  103. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
  104. wait (0.25)
  105. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
  106. wait (0.25)
  107. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
  108. wait (0.25)
  109. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
  110. wait (30) --End phase of the nuke
  111. game.Lighting.Ambient = Color3.new(0,0,0)
  112. game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
  113. sky:Destroy()
  114. game.Lighting.Brightness = 1
  115. Cloud1.BrickColor = BrickColor.new(1)
  116. Cloud2.BrickColor = BrickColor.new(1)
  117. Cloud1.Transparency = 0.6
  118. Cloud2.Transparency = 0.6
  119. wait (5)
  120. Cloud1.Transparency = 0.7
  121. Cloud2.Transparency = 0.7
  122. wait (5)
  123. Cloud1.Transparency = 0.8
  124. Cloud2.Transparency = 0.8
  125. wait (5)
  126. Cloud1.Transparency = 0.9
  127. Cloud2.Transparency = 0.9
  128. wait (120)
  129. Cloud1:Destroy()
  130. Cloud2:Destroy()
  131. --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement