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 » Scripting Helpers
Home Search
 

Re: Moving arm welds when you aim

Previous Thread :: Next Thread 
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 12:36 PM
I'm thinking of how to make a gun that aims (if you ever played left4dead, paintball on roblox you'd have an idea of what I mean) But I don't know where to start. Moving your arm welds when looking up or down is black magic to me.

So plain and simple: What property or method can I use?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
20 Jan 2012 12:37 PM
[ Content Deleted ]
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 12:39 PM
He did quit, and gave me his character to me.
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 12:47 PM
bump
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jan 2012 12:48 PM
Do you wan't it to work in first person?
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 12:49 PM
That was the whole idea. But I already know how to clone your arms every time you equip a gun. I just need to know how they managed to make the welding change every time you looked up or down.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jan 2012 01:00 PM
Hold on
Report Abuse
mustyoshi is not online. mustyoshi
Top 50 Poster
Joined: 27 Dec 2007
Total Posts: 41651
20 Jan 2012 01:02 PM
You have two options, you can do complex math to get the angle.
Or you can do clever weld hacks to get it to point.

~Monica
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
20 Jan 2012 01:15 PM
It's not even nearly as complex as you think. I can't remember an Arm's size and specific rotation, and right now I have 3 things slowing my internet down to nothing, if you can get me those 2 I'll work a script for you.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
20 Jan 2012 01:39 PM
Set it's desired angle to either (math.pi) or (-math.pi).
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 02:14 PM
@mew

but how exactly do I script my gun so that the rotation only changes at a players given camera postion?
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
20 Jan 2012 02:32 PM
What's a postion?
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
20 Jan 2012 02:35 PM
Position, its easy to deduce. o:
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 02:37 PM
meant to say rotation...

I meant the angle at which your camera is positioned (you look up,down,right,left)
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 03:09 PM
bump
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 04:38 PM
bumpx2
Report Abuse
PrinceOfCamelot is not online. PrinceOfCamelot
Joined: 28 Oct 2009
Total Posts: 4685
20 Jan 2012 05:19 PM
All I want is

--The function (when you move your camera in first person)

--The rest I can do, I just have no idea how am I supposed to start it
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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