function announcement()
	local a = "Announcement                 "
	local h = game.ReplicatedStorage:WaitForChild("hour").Value
	
	if h >= 6 and h < 9 then
		a = a.."Go to the Canteen it is time for Breakfast"
	end
	if h >= 9 and h < 13 then
		a = a.."Free time activities are now open"
	end
	if h >= 13 and h < 18 then
		a = a.."Go to the Canteen it is Lunch Time"
	end
	if h >= 18 and h < 22 then
		a = a.."Indoor activities remain open"
	end
	if h >= 22 and h < 6 then
		a = a.."Go to your cells for lockdown"
	end
	
	return a
end

I use the following function as a RemoteFunction, it checks for a value called Hour which changes but the value a never changes for some reason.

1 comment

1

I fixed it sorry