I need a way to change team and position after a pressing a button and makes sure you bought a game pass.
I've tried this :
local pla = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect (function(player)
player.CharacterAdded:Connect (function(character)
if game.MarketplaceService:PlayerOwnsAsset(player,1288405181) then
script.Parent.MouseButton1Click:connect(function()
local Plteam = game.Teams.Criminals
script.Parent.MouseButton1Click:connect(function()
pla.Team = Plteam
end)
end)
end
end)
end)
I have connected this to a button connect to a frame connected to a starter gui in the starter gui folder

3 comments
Is this a local script or a script? Have you got Filtering Enabled?
Script,And no idea (i tried it but i do not know if it worked)
ok yes it is filtered