I am trying to insert a couple frames a larger scrolling frame.
Here is the code I am using to attempt it with:
while true do
wait(1)
plyrData = game.ReplicatedStorage.LoadData:InvokeServer()
for i,v in ipairs(plyrData.inventory) do
print(i)
local frame = script.Parent.WeaponsInvFrame:Clone()
frame.WeaponName.Text = plyrData.inventory[i]
frame.Description.Text = ""
frame.Position = UDim2.fromScale{0,(i*(frame.Size.Y.Scale+0.01))+0.01}
frame.Parent = mainGui.Frame.WeaponsInvFrame
end
end
As you can see by this photo the results have unsuccessful.
Edit: This appears to be a bug related to Studio not a script bug.