varjoy
(variable)
#1
hello!
this is the first try I do with a minimap
this is the image; (testing)
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
varjoy
(variable)
#2
Map size is normal Baseplate.
512,10,512
Hanfian
(Hanfian)
#4
If you rotate the entire map, it should be fixed. You just got to rotate it the right way
varjoy
(variable)
#5
It’s not about rotation it’s about position
Hanfian
(Hanfian)
#6
Position is relative to the rotation. Walking “up” from the wrong perspective could actually be moving “left” . Try rotating your perspective
varjoy
(variable)
#7
that’s fine, it’s the position