Okay so this is the code:
if key_code == 13 then local slot = l1:Clone() slot.Parent = l1.Parent slot.Name = "Slot" slot.Position = UDim2.new(0,0,0,55*num) slot.Text = player.Name slot.Visible = true
Basically I just want a for loop to run every time key code is 13. I need a for loop because I need the slot position to move down every time it runs. I think you would use a for loop in this situation. If there is an easier to just move down the slot position every time key code is 13, then please help me out. Thanks!
You would use a while loop.
while true do wait(.1) if key_code == 13 then local slot = l1:Clone() slot.Parent = l1.Parent slot.Name = "Slot" slot.Position = UDim2.new(0,0,0,55*num) slot.Text = player.Name slot.Visible = true end end