1 | while true do |
2 | wait() |
3 | if script.Parent.Parent.Parent.Parent.TeamColor = = "Brown" then |
4 | script.Parent.Image = "http://www.roblox.com/asset/?id=141566394" |
5 | wait( 15 ) |
6 |
7 | end |
8 | end |
The parent of this script is an image label, whose parent is a ScreenGUI, whose parent is StarterGUI.
Okay so this might be the problem, not entirely sure but firstly with colors in scripts you have to put (in this case, BrickColor.new but there's also several other ones) BrickColor.new("Color name here"). Secondly, with images, they have to follow the proper format. The link is rbxassetid://(ID number minus 1).
1 | --For the color part, you would put |
2 | TeamColor = = BrickColor.new( "Brown" ) then |
3 | script.Parent.Image = "rbxassetid://141566393" |
More details on BrickColor here