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

How to link a Developer Product to a gear?

I needed to link a developer product to a gear and found out they don't work with the "AdminTools" script. Also, does it have to be an official ROBLOX gear?

1 answer

✓ Accepted answer

I'm not sure if you want the game pass to give the play a tool, but here's a way you could do it:)


id = 1337 --gamepass id

game.Players.PlayerAdded:connect(function(plr) -- this is where the player has entered the game and you start a function
repeat wait() until plr.Character
if Game:GetService("GamePassService"):PlayerHasPass(plr, id) then -- we use game pass service to see if player has game pass
tool = game.ServerStorage["Tool Name"]  -- put the name of the tool you want them to have here
tool:clone().Parent = plr.Backpack
tool:clone().Parent = plr.StarterGear -- puts it into players started gear
end
end)

Hope this helped:) I forgot to tell you to make sure the tools in the server storage You should also atleast attempt a script we really aren't supposed to just give u the script but good luck:)

3 comments

0

Let me know if it didn't work cause it works for me all the time.

0

So this will have to be a published gear?

0

Oh no it doesn't have to be. any tool that any player or roblox has made will work.

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