I am trying to create a game where there are two teams, a team of catchers and one team with just one specific player on it. I have the following script:
function onPlayerEntered(plr) if plr.UserId == "ReeowDiKitty" then
plr.TeamColor = BrickColor.new("New Yeller") plr:LoadCharacter() end end
game.Players.PlayerAdded:connect(onPlayerEntered)
But I have no idea where to put it and I have tried different places in Roblox studio and it has not worked. I am VERY new to this and I have not created a game on Roblox before and my Lua knowledge is next to nothing so please be aware that I have no idea of any technical terms. I have created my two teams and created the spawn locator blocks for each team and switched off the autoassign. Is there anything else I need to do?
Many thanks in advance, I'm tearing my hair out here!

8 comments
is it a script or local script
plr.UserId == ReeowDiKityy ?? Put the user id not username.
put end]
scriptinghelpers is not a request site. Put the script in ServerScriptService. Also please USE CODE BLOCK.
I've tried both having it as a script and a local script and neither has made a difference. I currently have it as a script.
I'm terribly sorry but I have no idea what a request site is. Surely asking for help in itself is a request. And I also did say I was very new to all of this, I have no idea what code block is. I simply asked someone who knew more about this than me for help, I'm sorry if I have broken any rules. And thank you all for your help and advice. I will make the changes and try again.
He is not trying to be rude, but others won't be able to under stand your script if you dont use code block
Thank you. The script still doesn't work anyway. Never mind, it must be something I'm either doing wrong or not doing at all. Thank you for your help.