Advertisement
AirdHeee

Test Fe

Jun 30th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by Guest_EXD
  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 Guest_EXD")
  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. --Converted with ttyyuu12345's model to script plugin v4
  87. function sandbox(var,func)
  88. local env = getfenv(func)
  89. local newenv = setmetatable({},{
  90. __index = function(self,k)
  91. if k=="script" then
  92. return var
  93. else
  94. return env[k]
  95. end
  96. end,
  97. })
  98. setfenv(func,newenv)
  99. return func
  100. end
  101. cors = {}
  102. mas = Instance.new("Model",game:GetService("Lighting"))
  103. Model0 = Instance.new("Model")
  104. Humanoid1 = Instance.new("Humanoid")
  105. Part2 = Instance.new("Part")
  106. CylinderMesh3 = Instance.new("CylinderMesh")
  107. Part4 = Instance.new("Part")
  108. CylinderMesh5 = Instance.new("CylinderMesh")
  109. Script6 = Instance.new("Script")
  110. Model0.Name = " "
  111. Model0.Parent = mas
  112. Humanoid1.Parent = Model0
  113. Humanoid1.Health = 0
  114. Humanoid1.MaxHealth = 0
  115. Part2.Parent = Model0
  116. Part2.BrickColor = BrickColor.new("Dark stone grey")
  117. Part2.Reflectance = 0.5
  118. Part2.Anchored = true
  119. Part2.Size = Vector3.new(5, 1.20000005, 5)
  120. Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  121. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  122. Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
  123. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  124. CylinderMesh3.Parent = Part2
  125. Part4.Name = "Head"
  126. Part4.Parent = Model0
  127. Part4.BrickColor = BrickColor.new("Really red")
  128. Part4.Anchored = true
  129. Part4.Size = Vector3.new(5, 1.20000005, 5)
  130. Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  131. Part4.Color = Color3.new(1, 0, 0)
  132. Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
  133. Part4.Color = Color3.new(1, 0, 0)
  134. CylinderMesh5.Parent = Part4
  135. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  136. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  137. Script6.Parent = Part4
  138. table.insert(cors,sandbox(Script6,function()
  139. local ONOES = Instance.new("Sound")
  140. ONOES.SoundId = "rbxassetid://2633517495"
  141. ONOES.Volume = 10
  142. ONOES.EmitterSize = math.huge
  143. ONOES.Looped = false
  144. ONOES.archivable = false
  145. ONOES.Parent = workspace
  146.  
  147. --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
  148. local s = Instance.new("Sound")
  149. s.Volume = 10
  150. s.EmitterSize = math.huge
  151. sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
  152. local workspace = game.Workspace
  153.  
  154. function check(object)
  155.  
  156. if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
  157. for i, v in ipairs(object:getChildren()) do
  158. check(v)
  159. wait()
  160. end
  161. end
  162. if object:IsA("Part") then
  163. local soundclone = s:Clone()
  164. soundclone.SoundId = sounds[math.random(1, 2)]
  165. game:GetService("Debris"):AddItem(object, 300)
  166. soundclone.Pitch = math.random(9, 12)/10
  167. soundclone.Parent = object
  168. delay(0.1, function() soundclone:Play() end)
  169. delay(0, function()
  170. for i = 1, 15*1.5 do
  171. local Model = Instance.new("Model",workspace)
  172. local Cloud1 = Instance.new("Part")
  173. local Cloud2 = Instance.new("Part")
  174. local Cloud1Mesh = Instance.new("SpecialMesh")
  175. local Cloud2Mesh = Instance.new("SpecialMesh")
  176. local Sound = Instance.new("Sound",workspace)
  177. local sky = Instance.new("Sky")
  178. NUKE_COLOR = 24 --Only BrickColor codes.
  179. CLOUD_TRANSPARENCY = 0.25
  180.  
  181. wait(0.001)
  182.  
  183. function radiation(hit)
  184. local h = hit.Parent:findFirstChild("Humanoid")
  185. local DAMAGE = 10
  186. if h~=nil then
  187. h.WalkSpeed = 5
  188. h.Parent["Right Leg"]:Destroy()
  189. h.Parent["Left Arm"]:Destroy()
  190. for i =1,h.MaxHealth do
  191. h.Health = h.Health - DAMAGE
  192. wait(1)
  193. end
  194. end
  195. end
  196. function unanchor (m)
  197. for _,i in pairs (m:GetChildren()) do
  198. if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
  199. -- i.Anchored = false
  200. local Fire = Instance.new("Fire")
  201. Fire.Parent = i
  202. Fire.Size = math.random(5,10)
  203. i.Material = "CorrodedMetal"
  204. i:BreakJoints()
  205. i.BrickColor = BrickColor.new(26)
  206. i.Touched:connect(radiation)
  207.  
  208. else
  209. unanchor(i)
  210. end
  211. end
  212. end
  213. unanchor(game.Workspace)
  214.  
  215. Sound.SoundId = "http://www.roblox.com/asset?id=2633517495"
  216. Sound.PlaybackSpeed = 0.2
  217. Sound.Playing = true
  218. Sound.Volume = 10
  219.  
  220. Model.Name = "Mushroom Cloud"
  221. Cloud1.Parent = Model
  222. Cloud1.Anchored = true
  223. Cloud1.CanCollide = false
  224. Cloud1.Locked = true
  225. Cloud1Mesh.Parent = Cloud1
  226. Cloud1Mesh.MeshType = "FileMesh"
  227. Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  228. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
  229. Cloud2.Parent = Model
  230. Cloud2.Anchored = true
  231. Cloud2.CanCollide = false
  232. Cloud2.Locked = true
  233. Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
  234. Cloud2Mesh.Parent = Cloud2
  235. Cloud2Mesh.MeshType = "FileMesh"
  236. Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  237. Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
  238. Cloud1.Transparency = CLOUD_TRANSPARENCY
  239. Cloud2.Transparency = CLOUD_TRANSPARENCY
  240. Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
  241. Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
  242. sky.Parent = game.Lighting
  243. sky.Name = "NukeSky"
  244. sky.CelestialBodiesShown = true
  245. sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
  246. sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
  247. sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
  248. sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
  249. sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
  250. sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
  251. explosion = Instance.new("Explosion")
  252. explosion.Parent = game.Workspace
  253. explosion.BlastRadius = 9999999999999
  254. explosion.BlastPressure = 10000000
  255. game.Lighting.Brightness = 999
  256. game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
  257. wait (1) --Fireball
  258. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
  259. wait (0.25)
  260. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
  261. wait (0.25)
  262. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
  263. wait (0.25)
  264. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
  265. wait (0.25)
  266. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
  267. wait (0.25)
  268. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
  269. wait (0.25)
  270. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
  271. wait (0.25)
  272. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
  273. wait (0.25)
  274. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
  275. wait (30) --End phase of the nuke
  276. game.Lighting.Ambient = Color3.new(0,0,0)
  277. game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
  278. sky:Destroy()
  279. game.Lighting.Brightness = 1
  280. Cloud1.BrickColor = BrickColor.new(1)
  281. Cloud2.BrickColor = BrickColor.new(1)
  282. Cloud1.Transparency = 0.6
  283. Cloud2.Transparency = 0.6
  284. wait (5)
  285. Cloud1.Transparency = 0.7
  286. Cloud2.Transparency = 0.7
  287. wait (5)
  288. Cloud1.Transparency = 0.8
  289. Cloud2.Transparency = 0.8
  290. wait (5)
  291. Cloud1.Transparency = 0.9
  292. Cloud2.Transparency = 0.9
  293. wait (120)
  294. Cloud1:Destroy()
  295. Cloud2:Destroy()
  296. --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
  297. local e = Instance.new("Explosion")
  298. e.Parent = workspace
  299. e.BlastPressure = 1e4*object:getMass()
  300. e.Position = object.Position
  301. object.Anchored = true
  302. object:BreakJoints()
  303. wait(1.5)
  304. end
  305. end)
  306.  
  307. end
  308. end
  309.  
  310. local deb = true
  311. script.Parent.Touched:connect(function(hit)
  312. if not deb then return end
  313. deb = false
  314. ONOES:Play()
  315. script.Parent.Parent.Name = ""
  316. local c = script.Parent.CFrame
  317. for i = 0, 1, 0.05 do
  318. script.Parent.CFrame = c - Vector3.new(0, i, 0)
  319. wait()
  320. end
  321. local m = Instance.new("Message")
  322. m.Text = "TACTICAL NUKE INCOMING!!"
  323. m.Parent = workspace
  324. local color = game.Lighting.Ambient
  325. delay(0, function()
  326. while true do
  327. game.Lighting.Brightness = 2
  328. game.Lighting.Ambient = Color3.new(100, 0, 0)
  329. game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
  330. game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
  331. wait(1)
  332. game.Lighting.Brightness = 1
  333. game.Lighting.Ambient = color
  334. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  335. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  336. wait(1)
  337. end
  338. end)
  339. wait(5)
  340. m:remove()
  341. script.Parent.Parent.Name = "OOF"
  342. for i, v in ipairs(workspace:getChildren()) do
  343. check(v)
  344. wait()
  345. end
  346. end)
  347.  
  348. end))
  349. for i,v in pairs(mas:GetChildren()) do
  350. v.Parent = workspace
  351. pcall(function() v:MakeJoints() end)
  352. end
  353. mas:Destroy()
  354. for i,v in pairs(cors) do
  355. spawn(function()
  356. pcall(v)
  357. end)
  358. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement