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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Convert a Normal script in to SB script?

Previous Thread :: Next Thread 
Supah is not online. Supah
Joined: 16 Aug 2008
Total Posts: 921
29 Jun 2012 07:28 PM
its part of a script... i need this to work with an if key = system.

if (key == "B") then
modelname = "model's name here"
for i,v in pairs (game.Workspace:findFirstChild(modelname):GetChildren())
if v:IsA("Part") then
v.Transparency = 1
end
end
Report Abuse
MyLyrics is not online. MyLyrics
Joined: 28 Jun 2012
Total Posts: 36
29 Jun 2012 07:33 PM
if key == "b" then
modelname = "Name"
for i,v in pairs(game.Workspace:FindFirstChild(modelname):GetChildren()) do
if v:IsA("Part") then v.Transparency = 1
end end
Report Abuse
Supah is not online. Supah
Joined: 16 Aug 2008
Total Posts: 921
29 Jun 2012 07:38 PM
doesn't work
it doesn't turn anything invisible, and it's missing an end.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
29 Jun 2012 07:40 PM
This won't work as it needs to be in either a tool or hoppebin. If you want to use this you will have to make it create multiple instances for the tool/hopperbin and the handle.
Report Abuse
MyLyrics is not online. MyLyrics
Joined: 28 Jun 2012
Total Posts: 36
29 Jun 2012 07:42 PM
Supah, who are you to judge? You're stupid enough to forget the do after the for! XD!
Report Abuse
Supah is not online. Supah
Joined: 16 Aug 2008
Total Posts: 921
03 Jul 2012 03:45 PM
Well, obviously, I cannot be that stupid, because I have created a script with over 200,000 lines, I'm kinda tired, so, give me a break. I don't just code RBXLua, because you can't make a living off of it. You can make a living off of C++, C#, Lua, and HTML. I code those languages. I don't see you being much better, if at all better, than me.
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