I’m trying to make a “tip” system where it clones a frame inside of a screen ui, renames it, and changes a few stats inside it. Currently, when I try to use the :Clone() variable inside of my script, it just replaces the current frame. I’ve tried to fix this by cloning other variables, but the result is the same.
Here is a video on what I mean:
Heres the script:
task.wait(5)
script.Parent.Template:Clone()
script.Parent.Template.Name = "F1"
task.wait(1)
script.Parent.F1.Visible = true
script.Parent.F1.Countdown.Text = "10"
task.wait(1)
script.Parent.F1.Countdown.Text = "9"
task.wait(1)
script.Parent.F1.Countdown.Text = "8"
task.wait(1)
script.Parent.F1.Countdown.Text = "7"
task.wait(1)
script.Parent.F1.Countdown.Text = "6"
task.wait(1)
script.Parent.F1.Countdown.Text = "5"
task.wait(1)
script.Parent.F1.Countdown.Text = "4"
task.wait(1)
script.Parent.F1.Countdown.Text = "3"
task.wait(1)
script.Parent.F1.Countdown.Text = "2"
task.wait(1)
script.Parent.F1.Countdown.Text = "1"
task.wait(1)
script.Parent.F1:Destroy()
task.wait(1)
script.Parent.Template:Clone()
script.Parent.Template.Name = "F1"
task.wait(1)
script.Parent.F1.Text = "Did you know that group members get special perks in-game?"
script.Parent.F1.Visible = true
script.Parent.F1.Countdown.Text = "10"
task.wait(1)
script.Parent.F1.Countdown.Text = "9"
task.wait(1)
script.Parent.F1.Countdown.Text = "8"
task.wait(1)
script.Parent.F1.Countdown.Text = "7"
task.wait(1)
script.Parent.F1.Countdown.Text = "6"
task.wait(1)
script.Parent.F1.Countdown.Text = "5"
task.wait(1)
script.Parent.F1.Countdown.Text = "4"
task.wait(1)
script.Parent.F1.Countdown.Text = "3"
task.wait(1)
script.Parent.F1.Countdown.Text = "2"
task.wait(1)
script.Parent.F1.Countdown.Text = "1"
task.wait(1)
script.Parent.F1:Destroy()
If anyone can help with this it would be greatly appreciated