Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- 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
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Humanoid1 = Instance.new("Humanoid")
- Part2 = Instance.new("Part")
- CylinderMesh3 = Instance.new("CylinderMesh")
- Part4 = Instance.new("Part")
- CylinderMesh5 = Instance.new("CylinderMesh")
- Script6 = Instance.new("Script")
- Model0.Name = " "
- Model0.Parent = mas
- Humanoid1.Parent = Model0
- Humanoid1.Health = 0
- Humanoid1.MaxHealth = 0
- Part2.Parent = Model0
- Part2.BrickColor = BrickColor.new("Dark stone grey")
- Part2.Reflectance = 0.5
- Part2.Anchored = true
- Part2.Size = Vector3.new(5, 1.20000005, 5)
- Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- CylinderMesh3.Parent = Part2
- Part4.Name = "Head"
- Part4.Parent = Model0
- Part4.BrickColor = BrickColor.new("Really red")
- Part4.Anchored = true
- Part4.Size = Vector3.new(5, 1.20000005, 5)
- Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Color = Color3.new(1, 0, 0)
- Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
- Part4.Color = Color3.new(1, 0, 0)
- CylinderMesh5.Parent = Part4
- CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
- CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
- Script6.Parent = Part4
- table.insert(cors,sandbox(Script6,function()
- local ONOES = Instance.new("Sound")
- ONOES.SoundId = "rbxassetid://199837904"
- ONOES.Volume = 10
- ONOES.EmitterSize = math.huge
- ONOES.Looped = false
- ONOES.archivable = false
- ONOES.Parent = workspace
- --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
- local s = Instance.new("Sound")
- s.Volume = 10
- s.EmitterSize = math.huge
- sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
- local workspace = game.Workspace
- function check(object)
- if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
- for i, v in ipairs(object:getChildren()) do
- check(v)
- wait()
- end
- end
- if object:IsA("Part") then
- local soundclone = s:Clone()
- soundclone.SoundId = sounds[math.random(1, 2)]
- game:GetService("Debris"):AddItem(object, 300)
- soundclone.Pitch = math.random(9, 12)/10
- soundclone.Parent = object
- delay(0.1, function() soundclone:Play() end)
- delay(0, function()
- for i = 1, 15*1.5 do
- local Model = Instance.new("Model",workspace)
- local Cloud1 = Instance.new("Part")
- local Cloud2 = Instance.new("Part")
- local Cloud1Mesh = Instance.new("SpecialMesh")
- local Cloud2Mesh = Instance.new("SpecialMesh")
- local Sound = Instance.new("Sound",workspace)
- local sky = Instance.new("Sky")
- NUKE_COLOR = 24 --Only BrickColor codes.
- CLOUD_TRANSPARENCY = 0.25
- wait(0.001)
- function radiation(hit)
- local h = hit.Parent:findFirstChild("Humanoid")
- local DAMAGE = 10
- if h~=nil then
- h.WalkSpeed = 5
- h.Parent["Right Leg"]:Destroy()
- h.Parent["Left Arm"]:Destroy()
- for i =1,h.MaxHealth do
- h.Health = h.Health - DAMAGE
- wait(1)
- end
- end
- end
- function unanchor (m)
- for _,i in pairs (m:GetChildren()) do
- if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
- -- i.Anchored = false
- local Fire = Instance.new("Fire")
- Fire.Parent = i
- Fire.Size = math.random(5,10)
- i.Material = "CorrodedMetal"
- i:BreakJoints()
- i.BrickColor = BrickColor.new(26)
- i.Touched:connect(radiation)
- else
- unanchor(i)
- end
- end
- end
- unanchor(game.Workspace)
- Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
- Sound.PlaybackSpeed = 0.2
- Sound.Playing = true
- Sound.Volume = 10
- Model.Name = "Mushroom Cloud"
- Cloud1.Parent = Model
- Cloud1.Anchored = true
- Cloud1.CanCollide = false
- Cloud1.Locked = true
- Cloud1Mesh.Parent = Cloud1
- Cloud1Mesh.MeshType = "FileMesh"
- Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
- Cloud2.Parent = Model
- Cloud2.Anchored = true
- Cloud2.CanCollide = false
- Cloud2.Locked = true
- Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
- Cloud2Mesh.Parent = Cloud2
- Cloud2Mesh.MeshType = "FileMesh"
- Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
- Cloud1.Transparency = CLOUD_TRANSPARENCY
- Cloud2.Transparency = CLOUD_TRANSPARENCY
- Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
- Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
- sky.Parent = game.Lighting
- sky.Name = "NukeSky"
- sky.CelestialBodiesShown = true
- sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
- sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
- sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
- sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
- sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
- sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
- explosion = Instance.new("Explosion")
- explosion.Parent = game.Workspace
- explosion.BlastRadius = 9999999999999
- explosion.BlastPressure = 10000000
- game.Lighting.Brightness = 999
- game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
- wait (1) --Fireball
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
- wait (30) --End phase of the nuke
- game.Lighting.Ambient = Color3.new(0,0,0)
- game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
- sky:Destroy()
- game.Lighting.Brightness = 1
- Cloud1.BrickColor = BrickColor.new(1)
- Cloud2.BrickColor = BrickColor.new(1)
- Cloud1.Transparency = 0.6
- Cloud2.Transparency = 0.6
- wait (5)
- Cloud1.Transparency = 0.7
- Cloud2.Transparency = 0.7
- wait (5)
- Cloud1.Transparency = 0.8
- Cloud2.Transparency = 0.8
- wait (5)
- Cloud1.Transparency = 0.9
- Cloud2.Transparency = 0.9
- wait (120)
- Cloud1:Destroy()
- Cloud2:Destroy()
- --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
- local e = Instance.new("Explosion")
- e.Parent = workspace
- e.BlastPressure = 1e4*object:getMass()
- e.Position = object.Position
- object.Anchored = true
- object:BreakJoints()
- wait(1.5)
- end
- end)
- end
- end
- local deb = true
- script.Parent.Touched:connect(function(hit)
- if not deb then return end
- deb = false
- ONOES:Play()
- script.Parent.Parent.Name = ""
- local c = script.Parent.CFrame
- for i = 0, 1, 0.05 do
- script.Parent.CFrame = c - Vector3.new(0, i, 0)
- wait()
- end
- local m = Instance.new("Message")
- m.Text = "TACTICAL NUKE INCOMING!!"
- m.Parent = workspace
- local color = game.Lighting.Ambient
- delay(0, function()
- while true do
- game.Lighting.Brightness = 2
- game.Lighting.Ambient = Color3.new(100, 0, 0)
- game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
- game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
- wait(1)
- game.Lighting.Brightness = 1
- game.Lighting.Ambient = color
- game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
- game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
- wait(1)
- end
- end)
- wait(5)
- m:remove()
- script.Parent.Parent.Name = "OOF"
- for i, v in ipairs(workspace:getChildren()) do
- check(v)
- wait()
- end
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement