generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Parent Property of Workspace.Terrain is locked

Previous Thread :: Next Thread 
MisterScripter is not online. MisterScripter
Joined: 24 Sep 2010
Total Posts: 702
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
07 Sep 2012 05:43 PM
@builder

It's the script's Parent.

†KMXD†
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
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
MisterScripter is not online. MisterScripter
Joined: 24 Sep 2010
Total Posts: 702
07 Sep 2012 07:55 PM
Thank You Guys.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image