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)
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)
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)