local id = somenumbershere
local toolname = "Some name here" -- btw make sure da tool is in serverstorage okok
local toolpermenant = false -- set to true if you want the player to keep the tool after he dies
local service = game:GetService("GamePassService")
local tool = game.ServerStorage:FindFirstChild(toolname)
game.Players.PlayerAdded:connect(function(newNoob)
if service:PlayerHasPass(newNoob, id) then
toolc = tool:Clone()
if toolpermenant == false then
toolc.Parent = newNoob.Backpack
elseif toolpermenant == true then
toolc.Parent = newNoob.StarterGear
end
else
print(newNoob.Name.. "Does not own the gamepass")
end
end)
|