I’m trying to manipulate the clock time using a script but it’s not even working.
if game.Lighting.ClockTime >= 7 and game.Lighting.ClockTime <= 22 then
TweenService:Create(game.Lighting, TweenInfo.new(13), {ClockTime = 0}):Play()
else
if game.Lighting.ClockTime >= 22 and game.Lighting.ClockTime <= 7 then
TweenService:Create(game.Lighting, TweenInfo.new(13), {ClockTime = 7}):Play()
end
end
The script is activated upon a RemoteEvent firing to the server, the script functions properly when the ClockTime is above 7 and under 22 but when it’s above 22 and under 7 it does not work.
if game.Lighting.ClockTime >= 7 and game.Lighting.ClockTime <= 22 then
TweenService:Create(game.Lighting, TweenInfo.new(13), {ClockTime = 0}):Play()
else
TweenService:Create(game.Lighting, TweenInfo.new(13), {ClockTime = 7}):Play()
end
if game.Lighting.ClockTime >= 7 and game.Lighting.ClockTime <= 22 then
TweenService:Create(game.Lighting, TweenInfo.new(13), {ClockTime = 0}):Play()
elseif game.Lighting.ClockTime < 7 or game.Lighting.ClockTime > 22 then
TweenService:Create(game.Lighting, TweenInfo.new(13), {ClockTime = 7}):Play()
end