Cloning SurfaceGui causes problems

I made sure to clone SurfaceGui with a set adornee (NOT SET ON SCRIPT) and Parent it to playergui, for some reason the Scrolling frame does not work, it just does not move at all and any scripts in it do not work either.

I changed the adornee to another part and it worked?
Script:

for i, v in game.ReplicatedStorage.AllSurfaceGuis:GetChildren() do
		if v then
			v:Clone().Parent = player.PlayerGui
		end
end

I think if you put a surface gui into player gui it wont show because its not a screen gui, that may be the problem, I don’t fully understand what you are trying to do but you can try to grab all the children and set the parent to a empty screen gui

It definitely works but I found a solution, I made sure to set the adornee after hand which seems useless but makes the scrollframe works.

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