Sorry but your game is a bit broken, I can “buy” the gamepass without buying them. When I click on one of them and refuse the prompt to buy I still get it. Also the gamepass button are a bit big I think ( maybe you didn’t make them considering of the screen idk) . Otherwise it’s fun and remind me of those minecraft maps. You got music which is good
local market = game:GetService("MarketplaceService")
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if market:UserOwnsGamePassAsync(plr.UserId, 12886155) then
market:PromptGamePassPurchase(plr.UserId, 12886155)
else
market:PromptGamePassPurchase(plr.UserId, 12886155)
market.PromptGamePassPurchaseFinished:Connect(function()
game:GetService("ReplicatedStorage").Carpet:FireServer()
end)
end
end)
Okay and after completing it I can say it’s good, a bit short though. The levels are nice but some are too easy and some could be too hard ( in the city I needed to move my camera at weird angle to see it was on the red house because red on red well you can’t see ). I liked the level with the “it’s not here” it got me
You did if the player owns the gamepass they get the prompt. Try this!
script.Parent.MouseButton1Click:Connect(function()
if market:UserOwnsGamePassAsync(plr.UserId, 12886155) then
game:GetService("ReplicatedStorage").Carpet:FireServer()
else
market:PromptGamePassPurchase(plr.UserId, 12886155)
market.PromptGamePassPurchaseFinished:Connect(function()
if market:UserOwnsGamePassAsync(plr.UserId, 12886155) then
game:GetService("ReplicatedStorage").Carpet:FireServer()
end
end)
end
end)
Also when the event gets fired to prevent exploiters make sure that they have the gamepass
Not going to give the code but you use “PromptGamePassPurchaseFinished” . It have an argument “isPurchased” which is a boolean that says if the user bought it or not. Also I didn’t check but you should have something that give the item back when the player rejoin or you should tell you lose the item when the player quit since it’s real money.
Yeah I know. I want to try make something similar. I am going to add some credits. Also, the person who he bought the game from copied a more popular Find The Button.