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: how do i make a cframe gun?

Previous Thread :: Next Thread 
marioman66 is not online. marioman66
Joined: 30 Jan 2008
Total Posts: 1766
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
Weirdraidercs35 is not online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
10 Sep 2016 08:36 PM
study fms


im a mlg
Report Abuse
marioman66 is not online. marioman66
Joined: 30 Jan 2008
Total Posts: 1766
10 Sep 2016 08:37 PM
i wanna learn lua, not java or python or anything else.
Report Abuse
Weirdraidercs35 is not online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
10 Sep 2016 08:40 PM
fms= free models





im a mlg
Report Abuse
marioman66 is not online. marioman66
Joined: 30 Jan 2008
Total Posts: 1766
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
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Sep 2016 08:44 PM
Study free models, then make your own based off what you learn.
Report Abuse
Julian_Orteil is not online. Julian_Orteil
Joined: 14 Aug 2012
Total Posts: 968
10 Sep 2016 08:46 PM
wiki.roblox.com
Report Abuse
marioman66 is not online. marioman66
Joined: 30 Jan 2008
Total Posts: 1766
10 Sep 2016 08:49 PM
i tried wiki, roblox doesn't have much scripting tutorials there.
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Sep 2016 08:51 PM
http://wiki.roblox.com/index.php?title=Making_a_ray-casting_laser_gun
Report Abuse
marioman66 is not online. marioman66
Joined: 30 Jan 2008
Total Posts: 1766
10 Sep 2016 08:53 PM
i dont want the gun to be held with one hand.
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Sep 2016 09:02 PM
re-weld the left arm then.
Report Abuse
Tuneable is not online. 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
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
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
Weirdraidercs35 is not online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
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 is not online. 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 is not online. 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
SashimiRoll is not online. SashimiRoll
Joined: 24 Dec 2015
Total Posts: 72
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
ArknausRIP is not online. ArknausRIP
Joined: 24 Dec 2015
Total Posts: 516
10 Sep 2016 10:51 PM
use roblox wiki/youtube
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. 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
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