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

How do i loop this 2 times?

script.Parent.MouseClick:connect(function(plr)

local c = game.Lighting.Apple:Clone()

c.Parent = plr.Backpack

end

i need this to happen twice but i dont know how to loop

1 answer

✓ Accepted answer

Try this:

for i=1, 2 do
local c = game.Lighting.Apple:clone()
c.Parent = plr.Backpack --make sure you have plr defined
end

2 comments

0

should i put it in a local script or something?

1

No, it doesn't matter what script you put it in. As long as the code I gave you is the entire script.

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