I am trying to make a pet attachment but the output says that I can’t and gives me this error ‘Attachments must be parented to a PartInstance.’
local attachp = Instance.new("Attachment")
attachp.Visible = false
attachp.Parent = pet -- Errors here
I don’t Know how to fix it, so any help with be helpful!
Is pet a valid BasePart? Can you try printing the pet & the pet’s ClassName?
print(pet)
print(pet.ClassName)
local attachp = Instance.new("Attachment")
attachp.Visible = false
attachp.Parent = pet -- Errors here
Class name is Model and the pet is probably going to be different each time
It needs to be a child of a part/meshpart.
Reference the Attachment inside a BasePart of some sort like @rottendogDkR mentioned, I don’t believe Attachments can be inside Models which is why it errors
Works! Thanks to the Both of you