Why is SurfaceGUI button isn't cloning?

Hi, so I was trying to get all my shirts and gamepasses from RoProxy. I looped through the table and tried to clone the button and it should have the price, but it isn’t cloning.

Even this one liner code doesn’t do anything

script.Parent.SurfaceGui.TextButton:Clone()

How do I really clone a TextButton ? I’m feeling stupid right now but I need to make it work. Thanks

You need to set the SurfaceGUIs parent again after cloning it.

I’m so stupid. Actually I returned to Roblox Studio after a very long time, I forgot this simple basic. Thanks!

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