A little weary of trying this on Studio, would this work?
local n = script.Parent
if n.Position == UDim2.new(0,28,0.0)
then
n.Position = UDim2.new(0,-272,0,0) --The original Position
end
--If a frame hits a certain position, then it should automatically revert to the original position the frame was set to.

1 comment
nope, i would say if n.Position == UDim2.new(0,28,0.0) then instead of then on a new line