Problem: i have this code to update a gui baste on game values, and when i added the second changed function, the else was underlined in red indicating an error, and i was hoping someone could help me out :D THANKS.
local player = game.Players.LocalPlayer
game.Workspace.Intermission.Changed:connect(function()
if game.Workspace.Intermission.Value == true then
script.Parent.Parent.Visible = true
game.Workspace.Inttime.Changed:connect(function()
local Inttime = workspace.Inttime.Value
script.Parent.Plrname.Text = player.Name
script.Parent.Inttime.Text = (Inttime.. " Until Round")
script.Parent.BackgroundColor = player.TeamColor
else
script.Parent.BackgroundColor = BrickColor.White()
end
end)
end)

3 comments
any error in output?
No.
You can't write the else after you have wrote "game.Workspace.Inttime.Changed:connect(function()" it has to be before your if statement end.