From ccc3a9e47442c76dcd5e10c5abe1f29cea0ea53c Mon Sep 17 00:00:00 2001 From: WalkerOfBacon <50679909+WalkerOfBacon@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:52:44 -0400 Subject: [PATCH] Add these fixes to the Teams UI too --- MainModule/Client/UI/Default/Teams.luau | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MainModule/Client/UI/Default/Teams.luau b/MainModule/Client/UI/Default/Teams.luau index 957c721914..8c2aa7616f 100644 --- a/MainModule/Client/UI/Default/Teams.luau +++ b/MainModule/Client/UI/Default/Teams.luau @@ -85,7 +85,7 @@ return function(data, env) self.Active = false self.AutoButtonColor = false self.Text = "..." - client.Remote.Send("ProcessCommand", string.format("%snewteam%s%s%s%s", data.CmdPrefix, data.CmdSplitKey, teamName.Text, data.CmdSplitKey, teamColor.Text)); + client.Remote.Send("ProcessCommand", string.format("%snewteam%s%s%s%s", data.CmdPrefix, data.CmdSplitKey, `"{teamName.Text}"`, data.CmdSplitKey, teamColor.Text)); teamName.Text = "" teamColor.Text = "" wait(1.2) @@ -97,10 +97,12 @@ return function(data, env) end end; }) - + + --[[ teamName:GetPropertyChangedSignal("Text"):Connect(function() teamName.Text = string.gsub(teamName.Text, data.CmdSplitKey, "") - end) + end)]] + teamColor:GetPropertyChangedSignal("Text"):Connect(function() teamColor.TextColor3 = BrickColor.new(teamColor.Text).Color --teamColor.TextColor3 = `{BrickColor.new(teamColor.Text:sub(1, 1):upper()}{teamColor.Text:sub(2):lower()).Color}` -- unfortunately we have BrickColors with names like "New Yeller"