My final question "?"
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
Okay, I have a timer. I am creating game called "Crocodile". In this game one of players becomes "Artist". Guy who drawing words. And all players must guess this word by drawing.
01 | while GameStart = = true do |
02 | TimerMessage = Instance.new( "Hint" , game.Workspace) |
03 | TimerMessage.Text = "This game will end in " ..TimerValue.. " seconds" |
05 | TimerValue = TimerValue - 1 |
07 | if TimerValue = = 0 then |
and when value GameStart = false script running this:
01 | while GameStart = = false do |
02 | local MaybeArtist = game.Players:GetChildren() |
03 | game.Workspace.Paintining.ColorPart.BrickColor = BrickColor.White() |
04 | game.ServerStorage.Value.Value = BrickColor.White() |
05 | if #MaybeArtist > = 2 then |
06 | CoolHint = Instance.new( "Hint" , game.Workspace) |
07 | CoolHint.Text = "Choosing player..." |
08 | local RealArtist = MaybeArtist [ math.random(#MaybeArtist) ] |
09 | RealArtist.TeamColor = BrickColor.Red() |
10 | CoolHint.Text = "Choosed!" |
11 | RealArtist.Character.Humanoid.Health = 0 |
15 | if IsArtist = = false then |
16 | RealArtist.TeamColor = BrickColor.Blue() |
17 | RealArtist.Character.Humanoid.Health = 0 |
20 | if #MaybeArtist = = 1 then |
21 | SorryHint = Instance.new( "Hint" , game.Workspace) |
22 | SorryHint.Text = "Not enough players! Sorry!" |
Its works yeah, but one problem. When GameStart becomes true, timer doesnt work. But if i am turned "true" in script, its works. But when script running "true" its doesnt work. Why?
Sorry for my bad grammar, its bad. I am not from english countries, i am learning english.