trying to give a tool to someone who bought the gamepass i dont know how to fix this help?
TIME:TIME:TIME- GamePassId '1308795' is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead. I dont know how any of this works! heres the script
01 | gps = game:GetService( "GamePassService" ); |
06 | Respawn_With_Tools = true ; |
08 | id = script:WaitForChild( "GamePassID" ); |
09 | game.Players.PlayerAdded:connect( function (Player) |
10 | Player:WaitForDataReady() |
11 | if gps:PlayerHasPass(Player , id.Value) then |
12 | for i,v in pairs (game.Lighting:GetChildren()) do |
13 | for a,c in ipairs (Tools) do |
14 | if v:IsA 'Tool' and v.Name:lower() = = c:lower() then |
16 | if Respawn_With_Tools = = true then |
17 | adminTool.Parent = Player.StarterGear |
18 | adminTool:Clone().Parent = Player.Backpack |
19 | elseif Respawn_With_Tools = = false then |
20 | adminTool.Parent = Player.Backpack |
i got this online