Anchor point in wrong position

for some reason this ui item is at the wrong anchor position. I have no idea what is going on. This is my first time using anchor points
properties:


code for moving frame:

local cam = Instance.new("Camera",workspace.CamPart)
cam.CFrame = workspace.CamPart.CFrame
local Frame = script.Parent.NewLabel.ViewportFrame
local InspectFrame = script.Parent.Parent.InspectFrame
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
wait(1)
local clone = game.ReplicatedStorage.Library.Items.SwordOfLight.Handle:Clone()
clone.Parent = Frame
clone.Position = cam.CFrame.Position + Vector3.new(0,0,-3)
Frame.CurrentCamera = cam
Frame.Parent.TextButton.Activated:Connect(function()
	print("ok")
	InspectFrame.Visible = true
	InspectFrame.Position = UDim2.fromOffset(Mouse.X,Mouse.Y)
end)
1 Like

What are you trying to achieve with anchor points

1 Like

making it so when you click a inventory item a ui appears at the mouse giving info