How to make Billboard Adornee Client-Sided

im starting to get annoyed from this code from a tutorial because i have been trying this for 3 hours but no respons happens

-- functions
UserInputService.InputChanged:Connect(function()
	if Mouse.Target then
		if Mouse.Target:IsA("Tool") then
			PickUpUI.Enabled = true
			PickUpUI.Adornee = Mouse.Target
		else
			PickUpUI.Enabled = false
			PickUpUI.Adornee = nil
		end
	end
end)

this is a local-script inside StarterCharacterScripts

wow a missing .Parent and it worked just fine

What you can do is, make a loop or a RenderStepped stepped event instead of doing this, do this:

local RunService = game:GetService("RunService")

RunService.RenderStepped:Connect(function()
   if Mouse.Target.Parent then
      if Mouse.Target.Parent:IsA("Tool") then
          PickUpUI.Enabled = true
	      PickUpUI.Adornee = Mouse.Target
     else
       PickUpUI.Enabled = false
	   PickUpUI.Adornee = nil
      end
   end
end)