How to tell if you are hovering over a Person/Player

So i’ve gone about this several times and none seemed to work.
The only script that was close to even working at all was this.

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

local rs = game:GetService('RunService')

rs.RenderStepped:Connect(function()
	local tar = mouse.Target
		if not tar.Parent.Humanoid then
		warn("NO HUMANOID")
		if tar.Parent.Humanoid then
		print("HUMANOID")
			tar.Parent.Highlight.Enabled = true
			tar.Parent.Nametag.Enabled = false
		end
	end
end)

image

1 Like

Thanks, it works exactly how i wanted it to but how would i get it to disappear after i take my mouse off of the target. I cant figure that out either

Can I see your full code?
3030