I have an overheadgui that would change color once you type a certain command like !red for example, however when they do type it, it doesn’t want to change.
local Players = game:GetService("Players")
local redcommand = "!red"
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
plr.Chatted:Connect(function(msg)
if msg == redcommand then
print("Red command was used")
character.HumanoidRootPart:WaitForChild("BillBoardGui").Name.TextColor3 = Color3.new(1, 0, 0)
end
end)
end)
end)
This is a server script, and yeah, the “Red Command was used” does print. I know It’s finding my character as I looped through all It’s children just to make sure. Any help would be appreciated! (: