I'v tried to find the issue with this script but it hasn't come to me. I'm wanting it to team the player to SWAT if they have a gamepass.
player = script.Parent.Parent.Parent.Parent.Parent
id = 164948636
script.Parent.MouseButton1Click:connect(function()
if Game:GetService("GamePassService"):PlayerHasPass(player, id) then
player.TeamColor = game.Teams['SWAT'].TeamColor
player.Character:breakJoints()
end
end)

1 comment
Hasn't worked.