Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Designing a Gun

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 ;)

8 answers

✓ Accepted answer

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.

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

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

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.

2 comments

0

the link wont work

0

Fixed.

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

1 comment

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...

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!

Lualearners tutorial.

1 comment

0

i tried it but it removes the gun when i shoot :( or when I even pick it up

This discussion is preserved as it was. New answers, comments, and votes are closed.