I am new to Roblox. I have 3 teams, Red, Green, and Blue. When the game starts everyone is on the green team, it is like a neutral. I made 2 blocks for red and blue so that you can step on one and decide which team you want to be on. After changing teams, if I die I respawn at the green spawn. It all works fine when I test it in studio, but when I publish it, it always respawns me to a green spawn. It will even say that I am on a different team than green, but still spawn me on green.
you probably dont know about filtering enabled,, i'd suggest you search up remote events and remote functions in roblox. also you should post the script