I'm working on a little effect with guis, but I have a problem with getting locations from a table. Here's a slice of the code:
local Positions = {0.251,0,-0.12,0;-0.062,0,-0.134,0;-0.069,0,0.116,0;0.162,0,0.173,0;0.32,0,0.079,0}--List of positions
local BannedPlayers = game.Workspace:WaitForChild("AdminGuiCommands"):WaitForChild("BannedPlayers"):GetChildren() --Just a list
local points = 0
for i = 1, 5 do
local points = points + 1
local clone = Instance.new("ImageLabel",script.Parent.Parent.Parent)
local cloneplayer = BannedPlayers[i]
--Some configurations, everything smooth here.
clone.Position = UDim2.new(Positions[points])
print(Positions[points]) --Prints "0.251,0,-0.12,0(x5)" which is the first position in the table
wait(.2)
end
points = 0
If you look at the code, you can clearly see that I'm trying to create 5 Image Labels and set each position to the corresponding position saved on the table, but that's just not happening.
Whenever I try to test, the images are created but they don't move. I tried to turn them into strings in the table and then make them tonumber() but that also never worked.
There's also no error displayed in the output, only the print 0.251,0,-0.12,0(x5). I don't know what to do at this point, any kind of help would be really appreciated!

2 comments
Thank you very much for the information! Have a nice day.
No problem, glad to help.