Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make this give you a tool? ( un solved)

local id = 103728213
 
game.Players.PlayerAdded:connect(function(player)
    local HasPass = Game:GetService("GamePassService"):PlayerHasPass(player, id)
    print(player.Name .. (HasPass and " has" or " doesn't have").. " the game pass!")
end)

1 comment

0

Please place your code in a code block.

1 answer

✓ Accepted answer
local id = 103728213

game.Players.PlayerAdded:connect(function(player)
    local HasPass = Game:GetService("GamePassService"):PlayerHasPass(player, id)
    if player:FindFirstChild("Backpack") then
    game.ServerStorage["ToolName"]:Clone().Parent = player.Backpack --It is recommended you have Server storage as a storage unit rather than lighting.
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.