Why won't this code run?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
The code refused to run, nothing is printed and nothing is draw to my screen except "hello?"
Can anyone please explain why this wont function correctly? It should draw an image and text Label with the correct info as specified in the houseConfig table. Not even i is printed from the for loop, someone please help?
22 | local gui = script.Parent |
24 | for i = 1 , #houseConfig do |
27 | local houseImage = Instance.new( 'ImageLabel' ,gui.Frame) |
28 | houseImage.Name = tostring (i.Name) |
29 | houseImage.Size = UDim 2. new( 0.12 , 0 , 1 , 0 ) |
30 | houseImage.Position = UDim 2. new( 10 , 0 , 0 ,i* 0.1 ) |
31 | houseImage.Image = i.Image |
33 | local houseName = Instance.new( 'TextLabel' ,houseImage) |
34 | houseName.Position = UDim 2. new( 0.5 , 0 , 1.1 , 0 ) |
36 | houseName.Name = tostring (i.Name) |
37 | houseName.Text = tostring (i.Name) |
38 | houseName.Font = "SourceSansBold" |
39 | houseName.TextColor = BrickColor.White() |
40 | houseName.FontSize = "Size18" |