Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

trying to give a tool to someone who bought the gamepass i dont know how to fix this help?

Asked by 5 years ago

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

01gps = game:GetService("GamePassService");
02 
03 
04Tools = {"keycardL2"} -- Exact text--
05 
06Respawn_With_Tools = true-- False if you don't want the people spawned with it.
07--MAKE SURE YOU PUT THE TOOLS IN THE LIGHTING
08id = script:WaitForChild("GamePassID"); -- Do not change
09game.Players.PlayerAdded:connect(function(Player)
10Player:WaitForDataReady()
11if gps:PlayerHasPass(Player , id.Value) then
12for i,v in pairs (game.Lighting:GetChildren()) do
13for a,c in ipairs (Tools) do
14if v:IsA'Tool' and v.Name:lower()==c:lower() then
15adminTool = v:Clone()
View all 26 lines...

i got this online

1 answer

Log in to vote
0
Answered by 5 years ago

That is not a game pass, that is an Image. Change your ID in your value.

0
ok.. LTRNightmare 66 — 5y
0
no I just checked its a gamepass website and i have the correct id LTRNightmare 66 — 5y
0
Did the error change? The error has the id "1308795" (Image) MacaylaMarvelous81 15 — 5y
Ad

Answer this question