This script is meant to make it so that if you own the gamepass; you will receive a Desert Eagle (The guns are set up correctly).
When the server starts up; there is no erro in output; but I do not receive a tool?
local id = 15372682
local function checkOwnership(plr)
return game:GetService('MarketplaceService'):PlayerOwnsAsset(plr, id)
end
function tool(plr)
local gun = game.ServerStorage["Desert Eagle"]:Clone()
gun.Parent = plr.Backpack
end
game.Players.PlayerAdded:Connect(function(plr)
if checkOwnership(plr) then
tool(plr)
end
end)

8 comments
Do you actually own the gamepass? The script looks good
oh im stupid
oh im stupid
Wait; no; it doesn't work even with owning the pass?
Is it because you forgot local in front of the second function? Also make sure you have the right id :P
Nope still doesn't work
just use gamepass door free model
or use value