Screen Gui> - Holds all below in it.
- TextButton>Script - Script changes Value in TextButton named "Time" (NumberValue). - works
- Time(NumberValue) - Used by above for wait(Time)
- Count(NumberValue)>Script - Script changes Value of Count to Value of Time and Counts it down by doing -1 every 1 second (wait(1)) - doesn't work
- Countdown(TextLabel) - Text of it should show Count(NumberValue), a countdown - doesn't work.
Script for 3.Count (not working):
local IntermissionTime = script.Parent.Parent.Time
function Intermission()
for i = IntermissionTime.Value, 0, -1 do
script.Parent.Value = i
end
end
Script for 4.Countdown (not working):
while true do wait(0.4)
if script.Parent.Parent.Parent.Visible == true then
local sec = script.Parent.Parent.Parent.Parent.TextButton.Count
script.Parent.Text = ""..sec.Value.."s"
else print'no'
end
end
Is there anyone who could help me with this? I can provide you with a model for this, so it's a lot easier to fix... I would really appreciate your time.
