Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local frame = script.Parent.SurfaceGui.Trainings.ScrollingFrame
- -- Destroy all children of the frame
- for _, child in ipairs(frame:GetChildren()) do
- child:Destroy()
- end
- local Template = script.Parent.SurfaceGui.Trainings.Template
- local clonedTemplate = Template:Clone() -- Clone the template
- clonedTemplate.Parent = script.Parent.SurfaceGui.Trainings.ScrollingFrame -- Set the parent of the clone
- clonedTemplate.Visible = true
- clonedTemplate.Info.Host.Text:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement