#Gamepass script help

1 messages · Page 1 of 1 (latest)

hasty apex
#

I want like a script that if I buy the gamepass it gives me that tool, I watched sm tutorials and it keeps saying error on "the tool couldnt be found in toolbox".

random hedgeBOT
#

studio** You are now Level 7! **studio

wide loom
#

You might need to upload the tool first if you made it yourself, otherwise you can already add it to the game and just parent it to the backpack when bought

hasty apex
#

um how do I do that

#

@wide loom

wide loom
#

To add the tool to workspace you can search it up in the toolbox or

#

Paste id in toolbox

#

@hasty apex

torn oar
#

you can put in the tool asset in server script service or replicated storage, then :Clone() the tool into the players backpack after you've confirmed the purchase/use has the gamepass

hasty apex
mild ravine
#

put it in the fucking toolbox bro

hasty apex
wide loom
#

But hold on for 1 min

#

Oh i see

#

OOOH

#

Alr so

#

Open the page with the tool on roblox and click "get" so you can use the asset

#

The old script you used would prob work with that

hasty apex
#

okay so

#

wait hold on

#

those are my tools

#

and then

#

I click thw white one

hasty apex
mild ravine
#

gimme the script grah

hasty apex
#

ofc

#

local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassID = 12345678 -- Change this ID to your Gamepass ID
local ToolName = "YourToolName" -- Change YourToolName to whatever you tool is called

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID) then
script[ToolName]:Clone().Parent = player.Backpack
end
end)
end)

mild ravine
hasty apex
#

IKR

#

BUT

#

KAY WAIT

mild ravine
#

clone the whitehand and slap hand and then put those clones in the script

#

and change your gamepass id too

#

and you have to prompt those gamepasses too

hasty apex
#

wdym prompt

#

sorry im not english

hasty apex
mild ravine
#

yea i cant help u srry, this seems like an easy task so maybe ask the studio assistant AI to do it, Its just that I cant help you if ydk the slighest thing bout scripting

hasty apex
#

er u wanna join my studio?

#

oh