local gui = plr:WaitForChild("PlayerGui"):WaitForChild("Mouse")
	while true do
		wait(0.5)
		
		if mouse.Target and mouse.Target.Parent:FindFirstChild("Collect") then
			-- Can i collect this
		gui.TextLabel.Visible = true
		gui.TextLabel.Text = mouse.Target.Parent.Name
		gui.TextLabel.Position = UDim2.new(mouse.X,0,mouse.Y,0)
		else
		gui.TextLabel.Visible = false	
		end		
	end

6 comments

0

Any errors?

0

sadly no

2

@OP try this: UDim2.new(0, mouse.X, 0, mouse.Y)

0

thanks that worked

0

just forgot there are 3 axis i assume? XD

0

No, UDim2 uses 4 values. ^