Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- 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(1.5)
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement