It wont team the person to team SWAT if they have the gamepass. I'm needing it to reset the player when they change team if they have the 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)
id = 164948636 script.Parent.MouseButton1Click:connect(function(player) if game:GetService("GamePassService"):PlayerHasPass(player, id) then --game:Get got Game:Get player.TeamColor = game.Teams.SWAT.TeamColor player.Character:breakJoints() --This line could be an error. I'm not sure how to fix this. end end) --[[ If Line 5 is the error, maybe it should be player.TeamColor = Color.new(game.Teams.SWAT.TeamColor) instead of what is there ]]