Mouse not centered

I have made a pseudo mouse that i can use for my game using an image label and a script to change the image label’s position.
here’s the script

repeat
	wait()
until game:IsLoaded()
local plr = game.Players.LocalPlayer

local mouse = plr:GetMouse()
local UIS = game.UserInputService
mouse.Icon = "rbxassetid://2300836745"

local psuedoMouse = script.Mouse:Clone()
psuedoMouse.Parent = script.Parent.Other

game["Run Service"].RenderStepped:Connect(function()
	local mouseLocation = UIS:GetMouseLocation()
	psuedoMouse.Position = mouseLocation
end)

The mouse is a bit higher than the image.
Also the image is centered if you want to ask.

robloxapp-20230418-1549093

Make sure your AnchorPoint of psuedomouse is 0.5, 0.5 and that IgnoreGuiInset is true in the ScreenGui. Hope that helps!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.