mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:21 PM |
You know what they say, when you're bored help your community! Now, what can I help you with? (: [Scripting related] |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2013 08:23 PM |
| game.Workspace:ClearAllChildren() it thros error dat terrain es locked cntkillme don't ruin my fun with dis person k? |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
| |
|
|
| 20 Aug 2013 08:27 PM |
so liek dis? game.Workspace.Terrain:Clear() game.Workspace:ClearAllChildren()
? Someone said any script can be one line. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:29 PM |
I wouldn't known because I haven't tried it.
game.Workspace.Terrain:Clear() game.Workspace:ClearAllChildren() |
|
|
| Report Abuse |
|
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:36 PM |
It shouldn't error, :Clear() is not locked.
|
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 20 Aug 2013 08:37 PM |
YOS I HAVE TROUBLE THE MESSAGE IS NOT SENDING TeXT TO MY FRIENDS PHONE
liek
local m = Instance.new('Message', Workspace) m.Text ="hi andrew, brb"
IT NOT DO |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:39 PM |
for _, v in pairs(game.Workspace:GetChildren()) do pcall(function() v:Clear() end) pcall(function() v:Destroy() end) end
|
|
|
| Report Abuse |
|
|
Dromine
|
  |
| Joined: 24 Apr 2013 |
| Total Posts: 57 |
|
|
| 20 Aug 2013 08:40 PM |
| I have two parts. They are in a model, and the only parts in the model. Plus, the model/parts are unanchored. The thing is, I want them welded together so that if the model falls, the parts stick together. Help? |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 20 Aug 2013 08:41 PM |
part1 = PUT YOUR OBJECT HERE part2 = PUT YOUR SECOND OBJECT HERE x = Instance.new("Weld", part1) x.Part0 = part1 x.Part1 = part2
|
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:42 PM |
@Red
local m = Instance.new('Message', Workspace) m.Text ="hi andrew, brb" wrong
local m = Instance.new("Message", Workspace) -- Use " " not ' ' m.Text ="hi andrew, brb"
|
|
|
| Report Abuse |
|
|
|
| 20 Aug 2013 08:42 PM |
It will, as Terrain will still be in the Workspace. Your pcall one wont, but it is less efficient* (at least, less aesthetically pleasing) than an if statement.
Don't quote me on this.* |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Aug 2013 08:42 PM |
@mic, give me my credit for using my script.
ClearAllChildren will break because Terrain is an un-removable object, and Roblox fails with it's ClearAllChildren method. |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2013 08:43 PM |
| You can use quotation marks and apostrophes interchangeably; it really doesn't matter. |
|
|
| Report Abuse |
|
|
Dromine
|
  |
| Joined: 24 Apr 2013 |
| Total Posts: 57 |
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:43 PM |
@Lupine hey hey hey I'm suppose to be the helper here.
Use the weld tool in studio, it works and it's simple. After you have welded each side move them together. |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2013 08:45 PM |
| mic, you're doing a terrible job at helping. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:45 PM |
Yup, it was that guys script. But I don't get why people do for i, v in pairs() do instead of for _, v in pairs() do.. There is nothing for the i to do!! >:O |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:46 PM |
| @WillScriptForFood I didn't ask you. (: |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Aug 2013 08:46 PM |
i is the index, like:
for i, v in pairs(Workspace:GetChildren()) do
Workspace:GetChildren()[i] IS v |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2013 08:47 PM |
Hey, mic, I didn't ask if I asked you.
It's a public Forum, get over it. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:48 PM |
| I don't see the diffrence. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 20 Aug 2013 08:49 PM |
| If you don't need help, or don't plan on helping then gtfo. There is nothing for you here. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Aug 2013 08:50 PM |
And it's still my script -.-
Even if you made it:
for askjdoas, idsjaid in next, Game.Workspace:GetChildren()) do pcall(function() idsjaid:Destroy() end) pcall(function() idsjaid:Clear() end) end
IT'S STILL MY SCRIPT |
|
|
| Report Abuse |
|
|