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: How would I set an explosion in front of the character?

Previous Thread :: Next Thread 
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
23 Jul 2013 11:08 AM
Should I add the Characters Torso position and look vector together?
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
23 Jul 2013 11:10 AM
Yes. You can take a number times the lookVector to move that explosion forward too.

( vector3 torsoPosition ) + ( vector3 torsoCFrame.lookVector * number distance )
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
23 Jul 2013 11:26 AM
Thanks, just wanted to know for future reference.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
23 Jul 2013 11:36 AM
If I did this would I get it behind the character?

torso vector3 + torso lookvector - torso lookvector * 2
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
23 Jul 2013 11:48 AM
Torso.Position + ( Torso.CFrame.lookVector * -2 )
would go behind
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
23 Jul 2013 11:53 AM
Thanks. Would this work as well, I want to find more methods to do this so if I forget one I'll remember the other.

Torso.Position - (Torso.CFrame.lookVector * 5)
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
23 Jul 2013 12:32 PM
Yea. Adding a negative number is nearly the same as subtracting a positive one.
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