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: I'd like to learn scripting, and

Previous Thread :: Next Thread 
SalsaSight is not online. SalsaSight
Joined: 04 Jul 2010
Total Posts: 10199
31 Aug 2013 11:46 PM
[ Content Deleted ]
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
31 Aug 2013 11:48 PM
wiki.roblox.com
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
31 Aug 2013 11:49 PM
CanCollide
Transparency
.Touched
Look these things up in:
wiki.roblox.com

If the wiki does not do it for you check a free model door.
Report Abuse
SalsaSight is not online. SalsaSight
Joined: 04 Jul 2010
Total Posts: 10199
01 Sep 2013 12:04 AM
[ Content Deleted ]
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
01 Sep 2013 12:06 AM
Lua is pretty much as close to english as possible

qq he called me lawn
Report Abuse
ninetailfox73 is not online. ninetailfox73
Joined: 11 Mar 2008
Total Posts: 1954
01 Sep 2013 12:12 AM
If you don't know how scripting works in general then you will have a hard time grasping the idea of it at first, well at least I did.

So with that said, think of scripting as a file cabinet or a library. You must go through certain files to reach a certain page.

For example you have a file named "Food" and you want to get to "Cheese". In scripting it would be that exact sequence Food > Cheese.
In Roblox the main "file" is called "game" you can basically access all things from it. Workspace is a child of "game" which means it's inside of it. To call Workspace you can say "game.Workspace" or just "workspace."

Essentially everything you see or interact with ingame is inside of "Workspace" so to call a certain brick you must say "game.Workspace.Brick"

CanCollide is a boolean so if you want to walk through a certain brick you must set it to false.
Game.Workspace.CanCollide = false

For things like buttons you must create a touched event, the wiki has plenty of information about it.
Report Abuse
ninetailfox73 is not online. ninetailfox73
Joined: 11 Mar 2008
Total Posts: 1954
01 Sep 2013 12:13 AM
Fail

Game.Workspace.Brick.CanCollide = false
Report Abuse
SalsaSight is not online. SalsaSight
Joined: 04 Jul 2010
Total Posts: 10199
01 Sep 2013 12:15 AM
[ Content Deleted ]
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
01 Sep 2013 12:16 AM
Here ya go.
http://www.roblox.com/Door-item?id=128415523
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
01 Sep 2013 12:17 AM
Brick.CanCollide = false
Brick.Transparency = 1

You can put as much in a function as you want

function yep()
--script
--nother script
-anything wanted
-herpaderp
end

Just be sure to add ends when needed.
Report Abuse
SalsaSight is not online. SalsaSight
Joined: 04 Jul 2010
Total Posts: 10199
01 Sep 2013 12:19 AM
[ Content Deleted ]
Report Abuse
ninetailfox73 is not online. ninetailfox73
Joined: 11 Mar 2008
Total Posts: 1954
01 Sep 2013 12:24 AM
You have to understand that things like transparency, and cancollide are just properties of a brick. Think of it like a description. These are entirely differenty from functions, you can change as many properties as you want within a function.

brick = script.Parent --make sure you assign the brick variable to something, if it's "script.Parent" then make sure the script is inside the door.

function onTouch(part)

brick.Transparency=1
brick.CanCollide=false
wait(3)
brick.CanCollide-true
brick.Transparency=0
end

brick.Touched:connect(onTouch)

Report Abuse
SalsaSight is not online. SalsaSight
Joined: 04 Jul 2010
Total Posts: 10199
01 Sep 2013 12:29 AM
[ Content Deleted ]
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
01 Sep 2013 12:30 AM
roblox.com/Forum/ShowPost.aspx?PostID=108855880

roblox.com/Forum/ShowPost.aspx?PostID=111754740

I've started to make some tutorials, check them out if you want.
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