Advertisement
ur9rgi

McRonalds Live shift updator

Apr 4th, 2024 (edited)
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local frame = script.Parent.SurfaceGui.Trainings.ScrollingFrame
  2.  
  3. -- Destroy all children of the frame
  4. for _, child in ipairs(frame:GetChildren()) do
  5.     child:Destroy()
  6. end
  7. local Template = script.Parent.SurfaceGui.Trainings.Template
  8. local clonedTemplate = Template:Clone()  -- Clone the template
  9. clonedTemplate.Parent = script.Parent.SurfaceGui.Trainings.ScrollingFrame  -- Set the parent of the clone
  10. clonedTemplate.Visible = true
  11. clonedTemplate.Info.Host.Text:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement