There are twelve cards in this frame. This script copies the cards until there are 240 of them. For some reason, this script is working fine in test mode, but in-game it's as if I have disabled it. Can somebody tell me why this is?
wait(5)
for i = 13, 240, 1 do
x = script.Parent["Card"..i-12]:Clone()
x.Name = "Card"..i
x.CardNum.Value = i
x.Parent = game.Players.LocalPlayer.PlayerGui.GUI.ClubMenu.Players
x.Position = UDim2.new(script.Parent["Card"..i-12].Position.X.Scale + 1,0,script.Parent["Card"..i-12].Position.Y.Scale,0)
end
script.Disabled = true

2 comments
http://wiki.roblox.com/index.php?title=API:Class/Players/LocalPlayer
Thank you xD