game.Players.PlayerAdded:Connect(function(newPlayer) if newPlayer:IsInGroup(ID) then (etc etc)
How can I get this to work in a local script. I'm trying to make it so if a player is in a group it'll change their team when they click a button (which I've already sorted through remote events) but if they aren't a gui frame with an error message pops up. I'm yet to know how to do the group section in a local script and if it even is possible. Any help at all would be greatly appreciated.