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
|
  |
| 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 |
|
|
|
| 03 Jan 2015 03:00 PM |
use filtering ok
logic is logical |
|
|
| Report Abuse |
|
|
Collin201
|
  |
| Joined: 27 May 2011 |
| Total Posts: 12394 |
|
| |
|
Collin201
|
  |
| Joined: 27 May 2011 |
| Total Posts: 12394 |
|
| |
|
Chrapnel
|
  |
| Joined: 01 Feb 2014 |
| Total Posts: 951 |
|
| |
|
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 |
|
|
|
| 04 Jan 2015 01:51 AM |
Use welding, Filtering Enabled and Ray casting.
That's all you need. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 04 Jan 2015 02:48 AM |
| Ahh yes weapon making, another thing that I failed miserably at. |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2015 02:49 AM |
| Not to be rude but what is your point of posting that, shiny? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 05 Jan 2015 04:03 PM |
| Why would you use filteringenabled to make them? |
|
|
| Report Abuse |
|
|
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 |
|
|