Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Game Pass Error Inf Pet Equip?

Im trying to make inf pet equip gamepass but i dont know the script i looked at youtube and google i found noting Pls help.

local service = game:GetService("MarketplaceService") local gamepass = 10077816 local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() service:PromptGamePassPurchase(player, gamepass) end)

service.PromptGamePassPurchaseFinished:Connect(function() --your script here player.Character.Humanoid.PetEquip = 999999 end)

8 comments

0

...

0

This isn't a request site.

0

this is a question

0

Well, it's not constructive.

0

i have posted the script

0

Please put it in code blocks.

0

Please code format your code, i barely can read it.

0

fixed

1 answer

local service = game:GetService("MarketplaceService")
local gamepass = 
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
	service:PromptGamePassPurchase(player, gamepass)
end)

service.PromptGamePassPurchaseFinished:Connect(function()
	--your script here
	player.Character.Humanoid.WalkSpeed = 50
end)

You have to change WalkSpeed for something else.I dont know what you want to do here.

4 comments

0

Make sure it's in a localscript inside a textbutton.Tell me if this helps.

0

Actually, I think I did something wrong on purchase finished.

0

hey thx for answer but when u get the game pass i want it to give infinite pet equip and not walk speed.

0

hey u saw my reply?

This discussion is preserved as it was. New answers, comments, and votes are closed.