game:GetService("Players").PlayerAdded:connect(function(Player) Player.Chatted:connect(function(Message) if Player.Team.Refs then if Message == "1" then game:GetService("StarterGui").made.TextLabel.Text = 1 end end end) end)
Can somebody help? Roblox Studio doesn't see any errors either. This is currently in the ServerScriptService.
You need to input a string, simply put quotes on the 1 or any other number.
game:GetService("Players").PlayerAdded:connect(function(Player) Player.Chatted:connect(function(Message) if Player.Team.Refs then if Message == "1" then game:GetService("StarterGui").made.TextLabel.Text = "1" end end end) end)