When cloning an object the adornee from StarterGui does not clone with it

I am cloning an object that has an adornee in the Start gui, but when I clone the object, there is no adornee for the new cloned object,

Are you able to show any scripts involved, if possible?

1 Like

You could clone the adornee when cloning the object.

2 Likes

I’ve managed to come up with a solution to the problem. Sorry for forgetting to say this. Thanks for all the help anyways!

Can you please share how you have managed to came up with a Solution? It would help other Developers who are facing a similar issue.

Once you share your solution, you can mark your reply as the Solution of this topic, so it can be closed.

Sure, in the script where I clone the object, I also clone the adornee and then set the adornee to the object.

It looks a little something like this:

local object = workspace:WaitForChild('Object')
local plr = game.Players.LocalPlayer

task.wait(5)

local newObject = object:Clone()
local UI = plr.StartGui:FindFirstChild('MainAdornee')

UI.adornee = newObject


-- This is just a demonstration and not the actual code I used but it is the method I used.

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