"Expected BasePart got Model for Handles.Adornee"

Handles are probably the most undocumented objects in roblox i barely see anybody using them on this forum despite how useful they can be, my issue is that im trying to make the adornee of a handles a model, and this does not work, it only works with baseparts even tho selectionboxes do work with models

so what am i supposed to do, is there a fix to this issue or am i forced to set it to a primary part or something? or is there a way to set it to the pivot? (that wont work cause it would return a CFrame and not a object)

local parentModel = hitObject:FindFirstAncestorOfClass("Model")

--unrelated stuff here

local adornee = parentModel or hitObject

-- another pile of unrelated stuff here

local arrow = Instance.new("Handles")
					arrow.Parent = plr.PlayerGui
					
					arrow.Adornee = adornee
					
					arrow.Style = Enum.HandlesStyle.Movement

I don’t really need to share the script cause it’s not gonna help much and the error is pretty self explanitory, i’m just wondering if there was a way to make it work for models

image

The error means that the Adornee property must be a BasePart (Part, WedgePart, TrussPart, UnionOperation, etc.), and not a Model.

thanks you replied 5 second after i created this topic i suggest you read again cause i already know that

i’m trying to find a solution for this cause i cannot just rule out models, i NEED to use models and handles so i dont know what to do

Sorry didn’t read it fully :sweat:
While you can’t set the property to a Model, you could in theory just make a Part in the center of the model that’ll act like the adornee, and then just pivot the model to where ever the part goes.

1 Like

yeah honestly thats the most logical solution lol i dont really know why i bothered creating the topic but yeah ill make a part in the center acting as the primary part

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.