|
| 10 Sep 2016 08:34 PM |
| not like those old cframed guns that do animations instantly. i wanna know how to create cframe gun that have a smooth aim animation. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2016 08:37 PM |
| i wanna learn lua, not java or python or anything else. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2016 08:41 PM |
| no, i dont want any of that. i want my game to be filled with scripts/ models i made. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:44 PM |
| Study free models, then make your own based off what you learn. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2016 08:49 PM |
| i tried wiki, roblox doesn't have much scripting tutorials there. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:51 PM |
| http://wiki.roblox.com/index.php?title=Making_a_ray-casting_laser_gun |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 08:53 PM |
| i dont want the gun to be held with one hand. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 09:02 PM |
| re-weld the left arm then. |
|
|
| Report Abuse |
|
|
Tuneable
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 2932 |
|
|
| 10 Sep 2016 09:10 PM |
| @Weirdraidercs35, Mister_Manakin There's multiple ######## devoted to roblox scripting yet you instruct him to "study free models". I hope your code doesn't reflect your logic patterns |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 09:13 PM |
| My code was messy and redundant until I studied scripts that other people made. Then I got better. The wiki wasn't of much help to me back then. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 09:15 PM |
you see what other people have done and get inspired and lern how to do it yourself.
im a mlg |
|
|
| Report Abuse |
|
|
Tuneable
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 2932 |
|
|
| 10 Sep 2016 09:21 PM |
| @Weird He clearly ##### ## ## ## himself and comes here for a start. Instead of providing reference material, you send him to the trash heap that is free models. The way I see it he can 1. Study free model scripts, where the code has no documentation, no cleanliness, and is outdated. Not to mention the viruses. 2. Visit the wiki, where there's article upon article detailing every aspect of roblox scripting. For me the choice the choice is obvious. If for fellow ######### it isn't, I'm genuinely concerned. |
|
|
| Report Abuse |
|
|
storm_xst
|
  |
| Joined: 27 Jul 2016 |
| Total Posts: 1205 |
|
|
| 10 Sep 2016 10:27 PM |
You should not research from free models, go to the wiki. Free models tend to have poorly written and unclear scripts.
@OP
So, since nobody has answered your question, you'd probably want to take a look at lerping (there's a good article on the wiki for this). If you wanted the gun to have two hands, and have hands visible in first person, you'd want to create new bricks that follow the camera or the player. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2016 10:38 PM |
| You need to learn welds and the lerp method for cframes. That's how those types of guns work. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2016 10:53 PM |
"i wanna learn lua, not java or python or anything else."
do you seriously think that people will make python or java guns on roblox lmao |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 10 Sep 2016 11:10 PM |
use lerp
cf:lerp(cf2,percent) v3:lerp(v32,percent)
function lerp(a,b,c) return (b-a)*c+a end lerp(1,2,0.5) -> 1.5
send me trades |
|
|
| Report Abuse |
|
|