I am making a time bar for a trivia game and I got the time bar to decrease in width when the question appears
My Issue?
Well, I want the script to print ‘‘It Worked!’’ when the timers up.
Start.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui["Question 1"].Visible = true
if Question1.Visible == true then
timerbar1:TweenSize(
UDim2.new(0, 0, 0, 30),
'Out',
'Quad',
10)
end
end)
if timerbar1.Size.X.Offset == 0 then
print('It worked!')
end
I’ve tried this script but it doesn’t seem to work… I’ve also reviewed it multiple times but I can’t seem to find the issue
Can anybody help me with why my script isn’t working?
Start.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui["Question 1"].Visible = true
if Question1.Visible == true then
timerbar1:TweenSize(
UDim2.new(0,30, 0,0),
'Out',
'Quad',
10)
end
end)
if timerbar1.Size.X.Offset == 0 then
print('It worked!')
end