Basically trying to change a TextLabel's text to a TeamName based on TeamColor in the Owner value. Owner is a BrickColorValue
Output:
18:15:39.591 - Players.Player1.PlayerGui.ScreenGui.Capture Stats.Title.Scr:3: attempt to concatenate field 'Owner' (a userdata value)
18:15:39.591 - Stack Begin
18:15:39.591 - Script 'Players.Player1.PlayerGui.ScreenGui.Capture Stats.Title.Scr', Line 3
18:15:39.591 - Stack End
18:15:39.592 - Disconnected event because of exception
Script:
local value = game.Workspace.Terminal.Owner
value.Changed:connect(function(c)
color = ""..game.Workspace.Terminal.Owner
for i,v in pairs (game.Teams:GetChildren()) do
if v.TeamColor == BrickColor.new(color) then
TeamName = v.Name
end
end
end)
I need a girl whose name doesn't end in .PNG |