So pretty much I have a problem with the game recognizing a team change. So I made in Roblox Studio that Team red and blue are not auto-assignable but TBD is, so it automatically puts everyone who joins in TBD. And then on their Screen a frame will show with 2 image button one saying Red Team and the other saying Blue Team. They click on it and boom it changes their team to their desired color. Well the problem is the chat message saying {Team} You are now on 'Red' Team. Or whatever doesn't show up. Making the game get confused and allow them to take their own team's flag... Here is my code. So in Starter GUI I added a new ScreenGUI called TeamGUI and I made the size 1,0,1,0. I added a Frame to it. with a textbox which says Please select your Team. And 2 buttons one saying Red Team and the other saying Blue Team they are image buttons I made images on Google Draw to make it look good and added the image. Under each one I added a ObjectValue which has the Value set to it's desired team for Blue Team Button it is set to Blue team and same for red. And a local script for both buttons saying the same thing here is it's code:
local team = script.Parent.Team
local frame = script.Parent.Parent
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
frame.Visible = false
player.Team = team.Value
end)
So uh how do I make the game or should I say server recognize this change and give the player the message in chat?
