Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Designing a Gun [closed]

Asked by 10 years ago

How do I design/script a gun? I see a lot of people designing them but how do they? All the little parts in it and everything. and scripting it too.

I don't care if there are no links. I just like answers ;)

Locked by Articulating

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

8 answers

Log in to vote
5
Answered by
Unclear 1776 Moderation Voter
10 years ago

People often build guns large and script them down and scale them. Design isn't something that can necessarily be taught...

Making a gun is a bit too extensive for one answer, so check this link out from the Wiki.

Ad
Log in to vote
4
Answered by
nate890 495 Moderation Voter
10 years ago

This is by far the best reference (that I know of) on how to make a fully functioning gun using raycasting.

Log in to vote
2
Answered by 10 years ago

You build the gun in a large size to start with, then you use a minimap script which you can get from free models and it resizes it to a normal weapon size.

After that, add weld scripts, put it into a tool, then go on Play Solo, then change the way your character is holding it.

For the scripts, here is an example of a basic one.

http://wiki.roblox.com/index.php/How_to_Make_a_Raycasting_Lasergun

Log in to vote
0
Answered by 10 years ago

This video is a good resource for how to make a simple gun. When you design it, you could expand on it unlike what he did on the video.

Also, look in the description of the video to see a template that has the firing code in it. With some more research, you could take it further.

0
the link wont work Randomplayer121 -2 — 10y
0
Fixed. jBuildz17 20 — 10y
Log in to vote
0
Answered by 10 years ago

http://lessons.lualearners.org/lesson?id=50

This is the best.

Log in to vote
-1
Answered by 10 years ago

dude... do research... I usually edit scripts, thats how I learn... sometimes I look at wiki...

0
I wouldnt recommnd paintball shooter scripts though, cos if ur making a war game then its better if the KOs of the player would actually go up, and with paintball shootr script u wont get ur KO's up... just sayin... even though I know am gonna get thumbs down... LokHsuLi 10 — 10y
Log in to vote
-2
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

Check out the LuaLearners tutorial on How to Make a Gun.

Also, as nate said, you could check out the Wiki's tutorial on making a gun.

-Thank me by accepting this answer/bumping up my reputation!

Log in to vote
-2
Answered by
Xeleum 0
10 years ago

Lualearners tutorial.

0
i tried it but it removes the gun when i shoot :( or when I even pick it up Randomplayer121 -2 — 10y