Sending something in lighting from replicatedstorage in script

Hello, im trying to figure out how to send an atmosphere to lighting which i’ve added in replicated storage so it works since there is no Enabled property for atmposphere or is their any way to activate atmosphere through script
image

my script is

local atmos = game.ReplicatedStorage:WaitForChild("Atmosphere2")

local value = ...

if value >= 1000 then

atmos.Enabled = ???                  --   idk how to send it to lighting or enable it

else

...


local atmos = game.ReplicatedStorage:WaitForChild("Atmosphere2")

local value = ...

if value >= 1000 then

local newatmos = atmos:Clone()
newatmos.Parent = game.Lighting

end
1 Like

thanks that works perfectly , now what if i want to undo that and remove the atmosphere?

game.Lighting.Atmosphere2.Parent = game.ReplicatedStorage

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.