|
| 17 Oct 2013 08:23 PM |
Hey guys, I have a quick question.
For scripts, how do I have it so I can have a script change parents?
For example, to change the color of a brick: game.Workspace.Part.Brick.BrickColor = Brick Color.new("Really red")
So, to change the parent, would it be: script.Parent = Parent.new(blahblahblah)? Or something else? |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 08:25 PM |
no, but i see what ur doing. just do
Part.Parent = Trail.To.The.Part |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 08:26 PM |
Trail.To.The.Part?
But wouldn't I need to say it should be new? Without the new, it would just be a false statement. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 08:27 PM |
so yeah. using Parent.new() would mean
http://www.roblox.com/All-Your-Answers-Right-Here-place?id=124686347 |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 08:28 PM |
trail to the part is just my lazy way of saying
Game.Workspace.Whatevayagonnacallit |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 08:29 PM |
Oh, lol.
So, let's say the new parent should be StarterPack, and it is originally in Workspace.
Should I say: script.Parent = game.StarterPack |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 17 Oct 2013 08:34 PM |
| nice to see people attempting to learn instead of requesting, its good days |
|
|
| Report Abuse |
|
|