|
| 07 Sep 2012 04:36 PM |
I have this script that does a timed remove. Its suppose to remove ONLY the ones that have a certain name. Then It removes the model, but it gives me an error. Output is what it says in the title. BTW (p) is defined
---------------------------------------------------------- while true do wait(5) Chart = game.Workspace:GetChildren() for i = 1,#Chart do if Chart[i].Name == p.Name.. "'s Dead Clone" or p.Name.. "'s Clone" or "A Clone of "..p.Name then Chart[i]:Remove() else script.Parent.Text = "Found No Clones" wait(1) script.Parent.Text = "Clone Yourself" end end end |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2012 05:29 PM |
while wait(5) do for i, v in pairs(Workspace:GetChildren()) do if v.Name == p.Name.. "'s Dead Clone" or v.Name == p.Name.. "'s Clone" or v.Name == "A Clone of "..p.Name then v:Destroy() else script.Parent.Text = "Found No Clones" wait(1) script.Parent.Text = "Clone Yourself" end end end
†KMXD† |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2012 05:31 PM |
Uhm, script.Parent.Text?
I don't think there IS a text property of script. :c Maybe you meant: Name?
-> Siggy pooped by the power of Ponies <- |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2012 05:43 PM |
@builder
It's the script's Parent.
†KMXD† |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2012 07:43 PM |
Fail on my part. I should've read it more clearly. C:
-> Siggy pooped by the power of Ponies <- |
|
|
| Report Abuse |
|
|
| |
|