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 » Scripters
Home Search
 

Re: A quick question

Previous Thread :: Next Thread 
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
06 Jun 2016 10:10 AM
Is there a way to define where a bullet from a gun comes from? For example, right now it comes from the handle, is there a way to design a chamber for it to come out of? How would I do this?
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
06 Jun 2016 10:20 AM
Literally just build a chamber, weld it to your gun, and then edit your script so that the start position of the projectile is relative to the chamber it comes out of.
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
06 Jun 2016 11:14 AM
You can make the bullet named "Gun's name Bullet"


Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
06 Jun 2016 11:21 AM
Sorry for not responding, I just changed the fire location from the handle to the newly named chamber. I feel stupid
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
06 Jun 2016 11:23 AM
Be careful of that, if it can go through walls then they can shoot through walls (which is a problem in a lot of Roblox games, every FPS game I've played so far).
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
06 Jun 2016 11:49 AM
@Flux

couldn't you just use 2 raycasts?

one from torso and one from chamber pointing to mouse, chamber being the magnitude between bullet and mouse.Hit and torso being the length between the Torso and the Chamber.

to make sure your not colliding with a wall and if not then shoot full length.
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
06 Jun 2016 11:57 AM
Yeah, that's a solution.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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