I have this script that I want help with and I was wondering how to turn this into a gamepass so that way, if the person bought the gamepass they have to click the buttom and when they click if they join the team if they have the gamepass or not
if game.Players.LocalPlayer:GetRankInGroup(4701317) > 3 then script.Parent:Destroy() end
script.Parent.MouseButton1Down:Connect(function() workspace.Events.TeamChange:FireServer(game.Teams["Foundation Personnel"]) end)

2 comments
wut
Use the code format when posting codes/scripts.