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: Bored, who needs help? Post your troubles here!

Previous Thread :: Next Thread 
mic144 is not online. 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
ProfitMargin is not online. ProfitMargin
Joined: 01 Aug 2013
Total Posts: 285
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 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
20 Aug 2013 08:26 PM
workspace.Terrain:Clear()
Report Abuse
ProfitMargin is not online. ProfitMargin
Joined: 01 Aug 2013
Total Posts: 285
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 is not online. 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
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
20 Aug 2013 08:33 PM
It'd still error, mic.
Report Abuse
mic144 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
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 is not online. 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
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
20 Aug 2013 08:43 PM
You can use quotation marks and apostrophes interchangeably; it really doesn't matter.
Report Abuse
Dromine is not online. Dromine
Joined: 24 Apr 2013
Total Posts: 57
20 Aug 2013 08:43 PM
Thanks.
Report Abuse
mic144 is not online. 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
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
20 Aug 2013 08:45 PM
mic, you're doing a terrible job at helping.
Report Abuse
mic144 is not online. 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 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
20 Aug 2013 08:46 PM
@WillScriptForFood I didn't ask you. (:
Report Abuse
cntkillme is not online. 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
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
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 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
20 Aug 2013 08:48 PM
I don't see the diffrence.
Report Abuse
mic144 is not online. 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 is not online. 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
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