local button = script.Parent
local count = 0
local threshHold = 2
local clickTime = 0.5
local Gamepass_Id = 54100594
local rank_id = 2
local rank_name = "Straight Ally"
script.Parent.Parent.RankName.Text = rank_name
local MarketPlaceService = game:GetService("MarketplaceService")
function Click()
count += 1
if count % threshHold == 0 then
game.ReplicatedStorage.Requests.ReqRank:FireServer(Gamepass_Id, rank_id)
else
if count % threshHold == 1 then
MarketPlaceService:PromptGamePassPurchase(game.Players.LocalPlayer, Gamepass_Id)
end
end
wait(clickTime)
count -= 1
end
button.MouseButton1Click:Connect(Click)
button.TouchTap:Connect(Click)
``
here's the copy and paste