id = ######### -- i'll insert gamepass id here
for i , v in pairs(game.Players:GetPlayers()) do
player = v.userID
if game:GetService("Gamepass Service"):PlayerHasService(player, id)
--how would i use the clone method and clone a tool ...
---i suppose id put tool in replicatedstorage and call a clone method but not sure how to call
--clone
end
end
✓ ANSWER ACCEPTED
how to use clone method if user buys gamepass?
1 answer
✓ Accepted answer
local id = 0
for _,v in pairs(game.Players:GetPlayers()) do
local service=game:GetService("GamePassService")
if server:PlayerHasPass(v,id) then
local clone = whereyourtoolis:Clone()
clone.Parent=v:WaitForChild("Backpack")
end end
This discussion is preserved as it was. New answers, comments, and votes are closed.
