I’ve been trying to make a UI button change lighting stuff, is it something with the event or just change it with lua button.MouseButton1Click ?
script:
events.mapdark.OnServerEvent:Connect(function()
if lighting.atmos.Density == 0.35 then
tween:Create(lighting.atmos, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0.5), {Density = 0.65}):Play()
tween:Create(lighting, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0.5), {ExposureCompensation = -1.5}):Play()
else
tween:Create(lighting.atmos, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0.5), {Density = 0.35}):Play()
tween:Create(lighting, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0.5), {ExposureCompensation = 0}):Play()
end
end)