local position = script.Parent.Position.X while wait() do if position > 0 then position = 0 end end
This script which is supposed to limit the max x value of the frame that is the parent to 0, But instead it outputs the error attempt to compare number and userdata.
Any possible fix?