01 | local Time = game.Workspace.Intermission.Value |
02 | local Game = game.Workspace.Game.Value |
03 |
04 | while true do |
05 | wait( 1 ) |
06 | script.Parent.Text = Time |
07 | Time = Time - 1 |
08 |
09 | if Time = = - 1 then |
10 | script.Parent.Text = Time = = false |
11 | if Time = = false then |
12 | wait( 1 ) |
13 | script.Parent.Text = Game |
14 | Game = Game - 1 |
15 | end |
16 | end |
17 | end |
Time = the Intermission Time "15"
Game = the Game Time "60"
The error says: Players.NiceDerpling.PlayerGui.ScreenGui.TextBox.Script:10: bad argument #3 (string expected, got boolean)
1 | time = = false |
gives a boolean
you can fix it by doing
1 | tostring (time = = false ) |