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)
✓ ANSWER ACCEPTED
How do you make this give you a tool? ( un solved)
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.

1 comment
Please place your code in a code block.