Advertisement
13242

Untitled

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