Clone not working

Hello. im making a party system and im trying to clone a template into the lobby gui when a party has been created but for some reason my cloning dosen’t work.

here is my code:

local player = game.Players.LocalPlayer
local owner = game.Players.LocalPlayer

local template = game.ReplicatedStorage.Template

local button = script.Parent

button.MouseButton1Click:Connect(function()
	local clonedTemplate = template:Clone()
	clonedTemplate.Parent = game.StarterGui.PlayerGui.LobbiesFrame.ScrollingFrame
end)

help is appreciated.

local player = game.Players.LocalPlayer
local owner = game.Players.LocalPlayer

local template = game.ReplicatedStorage.Template

local button = script.Parent

button.MouseButton1Click:Connect(function()
	local clonedTemplate = template:Clone()
	clonedTemplate.Parent = player.PlayerGui.LobbiesFrame.ScrollingFrame
end)
1 Like

I’m pretty sure its because the “Archivable” property isnt on

still not working for some reason

can you send a screenshot of the ui youre parenting it to in explorer

1 Like

https://gyazo.com/37fb9950352705347789951b6a78e1b9

try this

local player = game.Players.LocalPlayer
local owner = game.Players.LocalPlayer

local template = game.ReplicatedStorage.Template

local button = script.Parent

button.MouseButton1Click:Connect(function()
	local clonedTemplate = template:Clone()
	clonedTemplate.Parent = player.PlayerGui.PlayGui.LobbiesFrame.ScrollingFrame
end)
1 Like

thank you so much i really appreciate it