function onTouched(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil then if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == script.Parent.BrickColor then game.Lighting.NOTICE.Parent = game.StarterGui elseif game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil then if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == script.Parent.BrickColor then game.StarterGui.NOTICE.Parent = game.Lighting end end end
im trying to make it so that when a player touches the brick the gui from lighting called 'NOTICE' gets moved to starter gui, and then moved back if the certain team member is no longer touching the brick, thanks for the help.