Gamepass tool help

Hello there! So uh I have a problem. I made a gamepass tool so it gives you a tool if you owned gamepass. If I will enter with my account it will give my tool auto as I owned gamepass. But then I enter with Roblox studio emulator as player 1 and buying it. Then after death, it disappears. I am scared that it only on 1 life. And yes I bought it through the tool shop that I made, not the Roblox page. If you will tell that it normal thank you. But I don’t know how to check it.

Make a clone of the tool and put it into the player’s StarterGear so that every time they reset they still spawn with the tool.

1 Like

do something like this example. Enter the ID of your pass at the game pass id

local MarketPlaceService = game:GetService(“MarketplaceService”)
local GamePassId = 13499252

game.Players.PlayerAdded:Connect(function(player)

if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamePassId) then
	
	game.ServerStorage.RainbowMagicCarpet:Clone().Parent = player:WaitForChild("Backpack")
	game.ServerStorage.RainbowMagicCarpet:Clone().Parent = player:WaitForChild("StarterGear")
end

end)

1 Like

Thank you. I added it to my code so now roblox studio emulator see it too.

Thank you. But i don’t know how to make it.