Hello, what I want: a variable should replace a Udin2 value.
What happens. The value in question is set to 0 at the position although the variable is something completely different.
Output:
Code:
Code
abstand = 212
if foundn <= 5 then
local y = tonumber((abstand*foundn-212)/1000)
print(y)
v.Position = UDim2.new(0,(abstand*foundn-212)/1000,0.212,0)
print(v.Position)
end
Output:
Output
20:03:31.736 1 - Edit - #
20:03:31.736 0 - Edit - #…
20:03:31.736 {0, 0}, {0.211999997, 0} - Edit -
20:03:31.736 2 - Edit -
20:03:31.736 0.212 - Edit -
20:03:31.736 {0, 0}, {0.211999997, 0} - Edit -
20:03:31.736 3 - Edit -
20:03:31.736 0.424 - Edit -
20:03:31.737 {0, 0}, {0.211999997, 0} - Edit -
20:03:31.737 4 - Edit -
20:03:31.737 0.636 - Edit -
20:03:31.737 {0, 0}, {0.211999997, 0}
I have tried so much, nothing has worked out
Thanks in advance!