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

how to use clone method if user buys gamepass?

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

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.