I have some UDim2's in a table, but I noticed that they have commas in them so I had to make them into real UDim2's. But whenevre I tried using them it always returned {0,0},{0,0} instead of the actual value put in them. So I made them into strings but I dont know how to now convert the string into UDim2. I've tried UDim2.new(nextPoint) but that didn't work.
No errors or warnings, local script. Thanks if you can help.
local dash1 = script.Parent.Dash1
local dash2 = script.Parent.Dash2
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)
local points = {
"{0.021, 0},{0.06, 0}",
"{0.021, 0},{0.116, 0}",
"{0.137, 0},{0.116, 0}",
"{0.137, 0},{0.06, 0}"
}
local dash1Point = 1
local dash2Point = 3
local function moveDash1 ()
local nextPointI = dash1Point + 1
if nextPointI == 4 then
nextPointI = 1
end
local nextPoint = points[nextPointI]
print(UDim2.new(nextPoint))
local tween = tweenService:Create(dash1,tweenInfo,{Position = UDim2.new(nextPoint)})
tween:Play()
end
moveDash1()
