Create a folder in ServerStorage called Tools, put the tools you would like to give to a player, then make a script in the workspace and put this in it
01 | local MarketPlaceService = game:GetService( "MarketplaceService" ) |
02 | local players = game:GetService( "Players" ) |
03 | local tools = game.ServerStorage.Tools:GetChildren |
04 | if tools. nil = = true then |
05 | local newfolder = Instance.new( "Folder" ,ServerStorage) |
06 | newfolder.Parent = game.ServerStorage |
07 | newfolder.Name = "Tools" |
10 | local gamepassid = "PUTGAMEPASSIDHERE" |
12 | function spawned(player) |
14 | local HasGamepass = false |
16 | local success, message = pcall ( function () |
17 | HasGamepass = MarketPlaceService:UserOwnsGamePassAsync(player.userid, gamepassid) |
21 | warn( "Checking for the game pass, please wait..." .. tostring (message)) |
25 | if HasGamepass = = true then |
26 | local randomtool = game.ServerStorage.tools [ math.random( 1 , #tools) ] |
27 | local toolclone = randomtool:Clone() |
28 | toolclone.Parent = player.Backpack |
32 | game.Players.PlayerAdded:Connect( function (player) |
33 | player.CharacterAdded:Connect( function () |
38 | Players.PlayerSpawned:Connect(Spawned) |
Also, scripting helpers is for help with code, not request code. Let me know if this works!