So I am working on a map basically however I have a button that is intended to recenter the map into the specified position: {0.5, -1000},{0.5, -550} which is the position of the Frame when the game starts. Whenever I click the button though, the Frame goes to {0,0},{0,0}. Why does it not go to the specified position and does it have to do with screen resolution?
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Map.Position = UDim2.new{0.5, -1000},{0.5, -550}
end)

1 comment
You should only use the first parameter of each axis, the second one is based off of pixels and not the resolution of the monitor. The second one could make guis get cut off or overlap if someone uses another resolution.