Cloning UI Issue

I came across a problem using :Clone() in roblox studio. It doesn’t even work in the console.

This is how the frame is set up.
bug

Could it be problem with the ui layout or something? Please help fast! :=)

You need to be more descriptive with the issue. What happens when you attempt to clone it? Can you send a screenshot or video?

nothing happends no errors no duplicate

Mind sending us the code. We cannot help if you don’t provide the code for us to review.

I don’t see how the UI layout could effect it really. Are you sure your setting the parent correctly after cloning?

UIListLayout Simply Organizes your Frames when children are in them, so it isn’t possible that’s the reason it doesn’t work. You Also dont need a Duplicate of UIStroke.

Like the post above mine, send a image of the Code.

Possible Errors I can think off:

  • Your Chunk is not running
  • Cloned Instance being pathed to another parent
  • Unspecified Variable
  • Specified Path not being able to find the Correct Instance (Could Be Due to Duplication or items named the same thing)

Possible Solutions:

  • Check Path to UI?
  • Put Instance in ReplicatedStorage?
  • Check Code for Correct Variables?
  • Put Script or LocalScript (and Maybe ModuleScript) in StarterGui?

For the last Bullet, That is a common problem using Clients running UI, etc, unless you are using Server Scripts

Can you give us the code you used to clone the object? It may be a simple mistake that you just aren’t able to see. :wink:

Thank you I forgot to parent the clone!