Hello-
I’m trying to make a while true do
loop run every time os.time value changes. I would think I could use the :GetPropertySignalChanged
function. However, I don’t know how to use it in this situation… Anyone have any ideas to help me?
What I came up with: (Not working obviously lol)
local startTime = 73428973289
local timeNow = os.Time()
os:GetPropertySignalChanged("Time"):Connect(function(Player)
while wait(1) do
if timeNow >= startTime then
game.ReplicatedStorage.ShowGUI:FireClient(Player)
end
end
end)
EDIT: Or rather, instead of that, how can I make the while true do loop go, and be able to define the “Player” instance under the :FireClient
??