Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.93 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do print("FE Compatibility code V3 by Desered_ROBLOX")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8.  
  9. --Converted with ttyyuu12345's model to script plugin v4
  10. function sandbox(var,func)
  11. local env = getfenv(func)
  12. local newenv = setmetatable({},{
  13. __index = function(self,k)
  14. if k=="script" then
  15. return var
  16. else
  17. return env[k]
  18. end
  19. end,
  20. })
  21. setfenv(func,newenv)
  22. return func
  23. end
  24. cors = {}
  25. mas = Instance.new("Model",game:GetService("Lighting"))
  26. Model0 = Instance.new("Model")
  27. Humanoid1 = Instance.new("Humanoid")
  28. Part2 = Instance.new("Part")
  29. CylinderMesh3 = Instance.new("CylinderMesh")
  30. Part4 = Instance.new("Part")
  31. CylinderMesh5 = Instance.new("CylinderMesh")
  32. Script6 = Instance.new("Script")
  33. Model0.Name = " "
  34. Model0.Parent = mas
  35. Humanoid1.Parent = Model0
  36. Humanoid1.Health = 0
  37. Humanoid1.MaxHealth = 0
  38. Part2.Parent = Model0
  39. Part2.BrickColor = BrickColor.new("Dark stone grey")
  40. Part2.Reflectance = 0.5
  41. Part2.Anchored = true
  42. Part2.Size = Vector3.new(5, 1.20000005, 5)
  43. Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  44. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  45. Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
  46. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  47. CylinderMesh3.Parent = Part2
  48. Part4.Name = "Head"
  49. Part4.Parent = Model0
  50. Part4.BrickColor = BrickColor.new("Really red")
  51. Part4.Anchored = true
  52. Part4.Size = Vector3.new(5, 1.20000005, 5)
  53. Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  54. Part4.Color = Color3.new(1, 0, 0)
  55. Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
  56. Part4.Color = Color3.new(1, 0, 0)
  57. CylinderMesh5.Parent = Part4
  58. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  59. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  60. Script6.Parent = Part4
  61. table.insert(cors,sandbox(Script6,function()
  62. local ONOES = Instance.new("Sound")
  63. ONOES.SoundId = "rbxassetid://199837904"
  64. ONOES.Volume = 10
  65. ONOES.EmitterSize = math.huge
  66. ONOES.Looped = false
  67. ONOES.archivable = false
  68. ONOES.Parent = workspace
  69.  
  70. --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
  71. local s = Instance.new("Sound")
  72. s.Volume = 10
  73. s.EmitterSize = math.huge
  74. sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
  75. local workspace = game.Workspace
  76.  
  77. function check(object)
  78.  
  79. if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
  80. for i, v in ipairs(object:getChildren()) do
  81. check(v)
  82. wait()
  83. end
  84. end
  85. if object:IsA("Part") then
  86. local soundclone = s:Clone()
  87. soundclone.SoundId = sounds[math.random(1, 2)]
  88. game:GetService("Debris"):AddItem(object, 300)
  89. soundclone.Pitch = math.random(9, 12)/10
  90. soundclone.Parent = object
  91. delay(0.1, function() soundclone:Play() end)
  92. delay(0, function()
  93. for i = 1, 15*1.5 do
  94. local Model = Instance.new("Model",workspace)
  95. local Cloud1 = Instance.new("Part")
  96. local Cloud2 = Instance.new("Part")
  97. local Cloud1Mesh = Instance.new("SpecialMesh")
  98. local Cloud2Mesh = Instance.new("SpecialMesh")
  99. local Sound = Instance.new("Sound",workspace)
  100. local sky = Instance.new("Sky")
  101. NUKE_COLOR = 24 --Only BrickColor codes.
  102. CLOUD_TRANSPARENCY = 0.25
  103.  
  104. wait(0.001)
  105.  
  106. function radiation(hit)
  107. local h = hit.Parent:findFirstChild("Humanoid")
  108. local DAMAGE = 10
  109. if h~=nil then
  110. h.WalkSpeed = 5
  111. h.Parent["Right Leg"]:Destroy()
  112. h.Parent["Left Arm"]:Destroy()
  113. for i =1,h.MaxHealth do
  114. h.Health = h.Health - DAMAGE
  115. wait(1)
  116. end
  117. end
  118. end
  119. function unanchor (m)
  120. for _,i in pairs (m:GetChildren()) do
  121. if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
  122. -- i.Anchored = false
  123. local Fire = Instance.new("Fire")
  124. Fire.Parent = i
  125. Fire.Size = math.random(5,10)
  126. i.Material = "CorrodedMetal"
  127. i:BreakJoints()
  128. i.BrickColor = BrickColor.new(26)
  129. i.Touched:connect(radiation)
  130.  
  131. else
  132. unanchor(i)
  133. end
  134. end
  135. end
  136. unanchor(game.Workspace)
  137.  
  138. Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
  139. Sound.PlaybackSpeed = 0.2
  140. Sound.Playing = true
  141. Sound.Volume = 10
  142.  
  143. Model.Name = "Mushroom Cloud"
  144. Cloud1.Parent = Model
  145. Cloud1.Anchored = true
  146. Cloud1.CanCollide = false
  147. Cloud1.Locked = true
  148. Cloud1Mesh.Parent = Cloud1
  149. Cloud1Mesh.MeshType = "FileMesh"
  150. Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  151. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
  152. Cloud2.Parent = Model
  153. Cloud2.Anchored = true
  154. Cloud2.CanCollide = false
  155. Cloud2.Locked = true
  156. Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
  157. Cloud2Mesh.Parent = Cloud2
  158. Cloud2Mesh.MeshType = "FileMesh"
  159. Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  160. Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
  161. Cloud1.Transparency = CLOUD_TRANSPARENCY
  162. Cloud2.Transparency = CLOUD_TRANSPARENCY
  163. Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
  164. Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
  165. sky.Parent = game.Lighting
  166. sky.Name = "NukeSky"
  167. sky.CelestialBodiesShown = true
  168. sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
  169. sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
  170. sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
  171. sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
  172. sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
  173. sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
  174. explosion = Instance.new("Explosion")
  175. explosion.Parent = game.Workspace
  176. explosion.BlastRadius = 9999999999999
  177. explosion.BlastPressure = 10000000
  178. game.Lighting.Brightness = 999
  179. game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
  180. wait (1) --Fireball
  181. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
  182. wait (0.25)
  183. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
  184. wait (0.25)
  185. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
  186. wait (0.25)
  187. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
  188. wait (0.25)
  189. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
  190. wait (0.25)
  191. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
  192. wait (0.25)
  193. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
  194. wait (0.25)
  195. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
  196. wait (0.25)
  197. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
  198. wait (30) --End phase of the nuke
  199. game.Lighting.Ambient = Color3.new(0,0,0)
  200. game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
  201. sky:Destroy()
  202. game.Lighting.Brightness = 1
  203. Cloud1.BrickColor = BrickColor.new(1)
  204. Cloud2.BrickColor = BrickColor.new(1)
  205. Cloud1.Transparency = 0.6
  206. Cloud2.Transparency = 0.6
  207. wait (5)
  208. Cloud1.Transparency = 0.7
  209. Cloud2.Transparency = 0.7
  210. wait (5)
  211. Cloud1.Transparency = 0.8
  212. Cloud2.Transparency = 0.8
  213. wait (5)
  214. Cloud1.Transparency = 0.9
  215. Cloud2.Transparency = 0.9
  216. wait (120)
  217. Cloud1:Destroy()
  218. Cloud2:Destroy()
  219. --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
  220. local e = Instance.new("Explosion")
  221. e.Parent = workspace
  222. e.BlastPressure = 1e4*object:getMass()
  223. e.Position = object.Position
  224. object.Anchored = true
  225. object:BreakJoints()
  226. wait(1.5)
  227. end
  228. end)
  229.  
  230. end
  231. end
  232.  
  233. local deb = true
  234. script.Parent.Touched:connect(function(hit)
  235. if not deb then return end
  236. deb = false
  237. ONOES:Play()
  238. script.Parent.Parent.Name = ""
  239. local c = script.Parent.CFrame
  240. for i = 0, 1, 0.05 do
  241. script.Parent.CFrame = c - Vector3.new(0, i, 0)
  242. wait()
  243. end
  244. local m = Instance.new("Message")
  245. m.Text = "TACTICAL NUKE INCOMING!!"
  246. m.Parent = workspace
  247. local color = game.Lighting.Ambient
  248. delay(0, function()
  249. while true do
  250. game.Lighting.Brightness = 2
  251. game.Lighting.Ambient = Color3.new(100, 0, 0)
  252. game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
  253. game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
  254. wait(1)
  255. game.Lighting.Brightness = 1
  256. game.Lighting.Ambient = color
  257. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  258. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  259. wait(1)
  260. end
  261. end)
  262. wait(5)
  263. m:remove()
  264. script.Parent.Parent.Name = "OOF"
  265. for i, v in ipairs(workspace:getChildren()) do
  266. check(v)
  267. wait()
  268. end
  269. end)
  270.  
  271. end))
  272. for i,v in pairs(mas:GetChildren()) do
  273. v.Parent = workspace
  274. pcall(function() v:MakeJoints() end)
  275. end
  276. mas:Destroy()
  277. for i,v in pairs(cors) do
  278. spawn(function()
  279. pcall(v)
  280. end)
  281. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement