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: Weapons-Making

Previous Thread :: Next Thread 
Collin201 is not online. Collin201
Joined: 27 May 2011
Total Posts: 12394
03 Jan 2015 02:52 PM
Alright, so back in late 2011-early 2012(I joined ROBLOX in early 2011) I had amateur experience in creating projectile guns, which were typically used in 2010-2011.

In late 2013, I stepped down from roblox for a while and began to focus on real life stuff. I have now returned with little to no knowledge of what I had previously and with ROBLOX 2015 getting more and more advanced, it's essential I learn how to make 2015 quality-level guns for my upcoming game.

As of now I have very little knowledge of scripting as said before and I'm looking for places to learn again since Lualearners shutdown. Here at the Scripters forum I'm asking for some assistance in the basics to making quality 2015 ROBLOX weaponry. Any help is appreciated, and thanks in advance.
Report Abuse
Collin201 is not online. Collin201
Joined: 27 May 2011
Total Posts: 12394
03 Jan 2015 02:59 PM
Specifically, I'm attempting to learn to make all manners of weapons(i.e bows, melee weapons like spears, and some guns.)
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
03 Jan 2015 03:00 PM
use filtering ok

logic is logical
Report Abuse
Collin201 is not online. Collin201
Joined: 27 May 2011
Total Posts: 12394
03 Jan 2015 08:21 PM
What's filtering?
Bump.
Report Abuse
Collin201 is not online. Collin201
Joined: 27 May 2011
Total Posts: 12394
04 Jan 2015 01:03 AM
bump
Report Abuse
Chrapnel is not online. Chrapnel
Joined: 01 Feb 2014
Total Posts: 951
04 Jan 2015 01:06 AM
wiki.roblox.com
Report Abuse
jashwa is not online. jashwa
Joined: 08 Feb 2010
Total Posts: 378
04 Jan 2015 01:12 AM
May I suggest

http://wiki.roblox.com/index.php?title=Solid_modeling

To make the model for the gun?

Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
04 Jan 2015 01:51 AM
Use welding,
Filtering Enabled and
Ray casting.

That's all you need.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
04 Jan 2015 02:01 AM
here's a raycasting tutorial

http://wiki.roblox.com/index.php?title=How_to_Make_a_Raycasting_Lasergun

raycasting is pretty standard now, i'd use that.
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
04 Jan 2015 02:29 AM
Ya most people use raycasting for bullets. However the good games still use projectiles because it allows them to add bullet drop.

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
04 Jan 2015 02:32 AM
Hibob you can still add bullet drop via calculating the distance and dropping it .x studs every y stud(s)...
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
04 Jan 2015 02:34 AM
With raycasting? How would that be done? (I'm literally know enough to get by on this subject)

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
04 Jan 2015 02:42 AM
Excuse my syntax I am on a iPad.

Player = game.Players.LocalPlayer;
Local mouse = player:GetMouse();

function bDrop(pos1, pos2, drop)
Return (pos1.Y-pos2.Y) * drop
End;

Mouse.Button1Down:connect(function()
Gunpos = player.Character.Torso.Position;
Hitpos = mouse.Hit.p;
Hitpos = Hitpos-bDrop(Gunpos, Hitpos, .01)
--stuff
End);
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2015 02:43 AM
Raycasting has nothing to do with the projectile, it's just how you get a point from an origin in a given direction with some length
Report Abuse
ShinyZoruaXD is not online. ShinyZoruaXD
Joined: 04 Jun 2012
Total Posts: 120
04 Jan 2015 02:48 AM
Ahh yes weapon making, another thing that I failed miserably at.
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
04 Jan 2015 02:49 AM
Not to be rude but what is your point of posting that, shiny?
Report Abuse
Collin201 is not online. Collin201
Joined: 27 May 2011
Total Posts: 12394
04 Jan 2015 09:12 PM
I'll try out the wiki links and look into the bits of information you guys are giving me, I appreciate it.
Report Abuse
Collin201 is not online. Collin201
Joined: 27 May 2011
Total Posts: 12394
04 Jan 2015 09:15 PM
Guys, ROBLOX wiki is extremely confusing no matter how many times I go back to retry. Is there any other ways to learn to script things like this? (I used to use Lualearners but it shutdown.)
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Jan 2015 02:15 PM
Raycasting fires in a straight line though. So would't that cause the ray to just go below instead of right to the mouse's hit position? I meant bullet drop that is more of an arc and continues to fall over time.

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
05 Jan 2015 02:27 PM
with Raycasting the Bullet Drop would be CRAP... but with projectiles the Physics are all set up... plus that in Raycasting u'd have to do Calculations and stuff for Bullet Drop (ya know, not anyone could make this :/)

so Projectile;

local b = Instance.new('Part', workspace)
b.Name = 'Bullet'
b.Size = --ur Size
b.CFrame = handle.CFrame, mouse.Hit.p --if u want the Bullet to Aim at the Mouse's Position
b.Velocity = b.CFrame.lookVector * Speed

if I missed something, tell me...
that's just the Basics... wen I get back to Developing my GTA Game I'll make more Advanced Guns :/
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Jan 2015 02:30 PM
You'd want to insert a bodyforce that keeps it airborne

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
05 Jan 2015 02:33 PM
hib, not necessary... the most important thing is, to not make it Metal Material... cos then it'll have a ton of Gravity :/
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Jan 2015 02:52 PM
I didn't know different materials had different masses. Depending on how high the velocity is depends if you need a bodyforce or not

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
apricotdew is not online. apricotdew
Joined: 21 Aug 2012
Total Posts: 427
05 Jan 2015 04:03 PM
Why would you use filteringenabled to make them?
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
05 Jan 2015 04:56 PM
To make sure they're compatible.
It's good practice.
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