Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to fix this problem (Cant explain it as a question)? [closed]

Asked by 5 years ago
Edited by BlueTaslem 5 years ago
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
I fixed it sorry neoSunny 1 — 5y

Closed as Non-Descriptive by Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?