--variables
local marketplaceservice = game:GetService("MarketplaceService")
local Luigi = game.Lighting.StarterCharacter
local player = game.Players.LocalPlayer
local gamepass = 9693560
script.Parent.MouseButton1Click:Connect(function() --starts all this up when they click
marketplaceservice:PromptGamePassPurchase(player, gamepass) --sends them the purchase
if marketplaceservice:UserOwnsGamePassAsync(player.userId, gamepass) then --sees if they have it
game.StarterPlayer.StarterCharacter:Destroy() --destroys the normal startercharacter
Luigi.Parent = game.StarterPlayer --adds the new startercharacter
end
end)
My problem is when I press it, and I buy the test purchase, it does nothing after. Or even if I click it again. There is no output errors. For context it is a localscript in a text button. I won't be online to elaborate or answer questions as it is 10 PM for me right now.
