I want to make my pseudo ChatGUI to have the player name different in TextColor3, TextStrokeColor3 and other properties different from the message, but I don't know how to do it! Can someone help me? Here is a script sample of mine (original script has 85 lines of codes)
function NewLabel(parent, msg, player) newchatline = Instance.new("TextLabel", parent) if player.Name=="PlantChampion" then newchatline.Text = "[OWNER] " ..player.Name.. " : " ..msg newchatline.TextColor3 = BrickColor.Yellow().Color newchatline.TextStrokeColor3 = player.TeamColor.Color newchatline.BackgroundColor3 = BrickColor.Green().Color else newchatline.Text = player.Name.. ": " ..msg newchatline.TextColor3 = player.TeamColor.Color newchatline.TextStrokeColor3 = player.TeamColor.Color newchatline.BackgroundColor3 = Color3.new(27,42,53) end newchatline.BackgroundTransparency = 0.8 newchatline.Size = UDim2.new(1,0,0,20) newchatline.Position = UDim2.new(0,0,1,-20) newchatline.Font = "Legacy" newchatline.TextStrokeTransparency = 0 newchatline.BorderSizePixel = 0 newchatline.FontSize = "Size18" newchatline.TextXAlignment = "Left" newchatline.TextYAlignment = "Center" newchatline.ClipsDescendants = true newchatline.Name = "line1" end