"Scale is not a valid member of UDim2"

For some reason this isn´t working

 local position = Bar.Position.Scale.X

It’s

local position = Bar.Position.X.Scale

Its x.Scale charssssssssssssss

Whoops! My bad! Just changed and it´s now working perfectly!