So I am wanting a GUI to tween at 8 O’clock in the morning. Ive taken some consideration of this post, but it never got a complete solution. Firing a remote event at a certain clocktime problem
Here is my current script. Please help me find my error.
local SchoolTask = game.ReplicatedStorage.SchoolTask
local Light = game.Lighting
local TaskGUI = game.StarterGui.SchoolTask.TextLabel.TextLabel_Roundify_12px
local Lighting = game:GetService("Lighting")
Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
if Lighting.ClockTime == 8 then
SchoolTask.OnClientEvent:Connect(function()
game.StarterGui.SchoolTask.TextLabel.TextLabel_Roundify_12px:TweenPosition(UDim2.new(0.404, 0,0.558, 0),"InOut","Sine",1)
end)
end
end)