playerService.PlayerAdded:Connect(function(Player)
Player:GetPropertyChangedSignal('Team'):Connect(function()
if Player.Team.Name == 'Police' then
Player:LoadCharacter()
else
end;
end);
end);
and it works! thank you all for helping me fix another problem i have! i wish i could mark multiple solutions cuz i kinda used a combination of two peoples solutions and then you helped fix the code
thank you very much, this not only solves the original problem, but solves other problems and ones to come in the future as well! tyou have helped alot and i coudnt be more gratfull! (i have been trying to solve that problem for days now)
but that creates just one problem, there is a team where it is called criminal and it makes you that team when you leave as a prisoner however the spawn point for prisoners if far away from where they simply get changed teams. and i dont want someone to get teleported across the map the second they leave prison, i want them to be on the run instead.
game.Players.PlayerAdded:Connect(function(player)
player:GetPropertyChangedSignal("Team"):Connect(function()
if player.Team.Name ~= "Criminal" then
player:LoadCharacter()
end
end)
end)