local script

It prints the positon of the mouse as offset so I put it as the UDim2 and it didn't work, It just dissapears.

player = game.Players.LocalPlayer
mouse = player:GetMouse()

script.Parent.MouseEnter:connect(function()
	script.Parent.Parent.Parent.HoverCloner.Visible = true
	script.Parent.Parent.Parent.HoverCloner.TextLabel.Text = script.Parent.Name
	script.Parent.Parent.Parent.HoverCloner.Position = UDim2.new(0,mouse.X,0,mouse.Y)
	print("HoverCloner moved to: "..mouse.X,mouse.Y)
	wait(2)
	script.Parent.Parent.Parent.HoverCloner.Visible = false
end)

1 comment

0

is HoverCloner inside of another frame that might be offset itself?