My local script for weather indication works half, but not full. Help is needed! Should I use heartbeat?
For example:
If I set the lighting to like 12, the weather indication will still remain on morning? Why?
local Lighting = game:GetService("Lighting")
while true do
if workspace:FindFirstChild("Rain") then
script.Parent.Text = "Rainy"
script.Parent.Parent.Emoji.Text = "ā"
elseif workspace:FindFirstChild("Rain") ~= nil and Lighting.ClockTime >= 19 then
script.Parent.Text = "Rainy Night"
script.Parent.Parent.Emoji.Text = "āļø š"
elseif workspace:FindFirstChild("Rain") == nil and Lighting.ClockTime >= 19 then
script.Parent.Text = "Night"
script.Parent.Parent.Emoji.Text = "š"
elseif Lighting.ClockTime >= 7 then
script.Parent.Text = "Morning"
script.Parent.Parent.Emoji.Text = "š
"
elseif Lighting.ClockTime >= 12 then
script.Parent.Text = "Afternoon"
script.Parent.Parent.Emoji.Text = "āļø"
elseif Lighting.ClockTime >= 16 then
script.Parent.Text = "Evening"
script.Parent.Parent.Emoji.Text = "š "
end
wait(1)
end