Minimap's not precise

hello!
this is the first try I do with a minimap
this is the image; (testing)
image
I don’t know why’s not working.

Video of error;


Code;

|local plr = game:GetService('Players').LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local middle = Vector3.new(0,-10,0)
local runService = game:GetService('RunService')
local Minimap = script.Parent.Frame.ImageLabel

runService.RenderStepped:Connect(function()
	local playerPosition = char.HumanoidRootPart.Position - middle
	local toPosition = UDim2.fromOffset(-playerPosition.Z,playerPosition.X)
	Minimap.Position = toPosition
end)
1 Like

Map size is normal Baseplate.
512,10,512

If you rotate the entire map, it should be fixed. You just got to rotate it the right way

It’s not about rotation it’s about position

Position is relative to the rotation. Walking “up” from the wrong perspective could actually be moving “left” . Try rotating your perspective

that’s fine, it’s the position