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
 

How Would I Create...

Previous Thread :: Next Thread 
PurelyRandom is not online. PurelyRandom
Joined: 05 Mar 2011
Total Posts: 36763
29 May 2013 07:14 PM
To make things easy to understand: A brick that shoots a "laser" at individual bricks (one at a time) until the whole map is loaded for a "holo" training facility.

For example, I want to load a map with a bridge. The bridge is made up of multiple parts. When someone says "load bridge", I want the brick above the (now invisible/transparent) bridge to create a "laser thin" brick that touches (at the ends) both the brick above the bridge and the first brick of the bridge. Then, after 0.01 seconds, the brick above the bridge creates another "laser thin" that touches (at the ends) both the brick above the bridge and the next brick that is part of the bridge.


Er...If you need me to explain it more, feel free to ask.



I know I have to put the different maps in Lighting, set Workspace as the parent, and have it transparent. I can do that easily, but I can't do what I said above.
I don't want you to write a script, but I want someone to explain what I need to know (what parts of lua [e.g; tables, functions, etc.]) to make what I want to happen, well, happen.
Report Abuse
SamHuckaby is not online. SamHuckaby
Joined: 04 Dec 2012
Total Posts: 59
29 May 2013 07:15 PM
Raycasting would be your bestfriend for this.
Report Abuse
PurelyRandom is not online. PurelyRandom
Joined: 05 Mar 2011
Total Posts: 36763
29 May 2013 07:16 PM
Oh. Wow, why didn't I think of that. Thanks.
Report Abuse
PurelyRandom is not online. PurelyRandom
Joined: 05 Mar 2011
Total Posts: 36763
29 May 2013 07:20 PM
So according to http://roblox.wikia.com/wiki/Raycasting, a ray requires:

Ray.new(origin, direction)

So for the origin, I could put the position of the "brick above the bridge", as said in the example above.

However, for the direction, what would I do to make it quickly change directions towards the individual parts of a group?

Report Abuse
TELEMONTHE1st is not online. TELEMONTHE1st
Joined: 11 May 2010
Total Posts: 692
29 May 2013 07:24 PM
You would make a boatload of rays...

~problem solved~
Report Abuse
PurelyRandom is not online. PurelyRandom
Joined: 05 Mar 2011
Total Posts: 36763
29 May 2013 07:25 PM
I meant I want 1 ray at a time.

1 ray shoots to one brick of a model, and that brick becomes non-transparent. All of that happens in 0.01 seconds (or whatever amount of time), and the ray disappears after that amount of time.
Then it reappears again to shoot at the next brick in a model, repeating the process until every brick of the model is now non-transparent.
Report Abuse
PurelyRandom is not online. PurelyRandom
Joined: 05 Mar 2011
Total Posts: 36763
29 May 2013 07:38 PM
Bump
Report Abuse
PurelyRandom is not online. PurelyRandom
Joined: 05 Mar 2011
Total Posts: 36763
29 May 2013 07:52 PM
Bump2
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
29 May 2013 07:55 PM
http://wiki.roblox.com/index.php/How_to_Make_a_Raycasting_Lasergun

Use this as a guide. Instead of doing damage make it make the part visible, instead of coming from the gun to where you click, make it go from the start to end point.

http://www.roblox.com/My/Groups.aspx?gid=66545
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