This is the code
local LocalPlayer = game.Players.LocalPlayer
local mouse = LocalPlayer:GetMouse()
Handles = LocalPlayer.PlayerGui.Tools.Handles
local Adornee = LocalPlayer.PlayerGui.Tools.Handles.Adornee
local Object = nil
local CF
local increment = 3
mouse.Button1Down:connect(function()
if mouse.Target ~= nil and mouse.Target.Parent.Name == "Objects" then
Object = mouse.Target
print(Object)
Adornee = Object
print(Adornee)
end
end)
I have tried to debug it and stuff but it just never works. Basically when i click with the mouse a part i am trying to set the adornee to that part but in the properties it stays as nill

And the weird thing is that when i print the Adornee threw the script it prints the part that i clicked