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: Shoulder Rotation

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
16 Jul 2014 06:17 PM
I did as Friaza did once (watched it ages ago) RS.C0 = RS.C0 * CFrame.Angles(-, -, -) I changed it, but my char's arm kept moving back to original position even though I did repeat until loop, help?
Report Abuse
wubbzy301 is not online. wubbzy301
Joined: 15 May 2010
Total Posts: 1188
16 Jul 2014 06:25 PM
Clone the arm then weld the cloned arm into the torso, then there, you weld the arm into the torso and you can mess your cloned arm

~lolololoool
Report Abuse
wubbzy301 is not online. wubbzy301
Joined: 15 May 2010
Total Posts: 1188
16 Jul 2014 06:25 PM
and make your original arm invisibe!!

~lolololoool
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 08:38 AM
yeah but, I wanna do it more Efficently and Naturally...
Report Abuse
MrNil is not online. MrNil
Joined: 26 Apr 2014
Total Posts: 352
17 Jul 2014 09:08 AM
@Kap,

Your best options are to either 1.) Disabled the animations script that is placed into the character, or
2.) Make the arms invisible, clone them, weld them to the torso, and define the C0 and C1 properties.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 09:55 AM
so ya say, disable Animation Script, but wat about Walking? ah well, looks like I'll needa make my own :/ ah who cares then, I'll do it, time to stop being lazy and get crackin before a Game is picked for me to build and wat if a War Game is picked, who knows... am planning on finishing my Test Subject Uzi so that it has Reload Sound, Reload Animation, it's Unique Holding Position etc... but a lil problem would be, tagging a Humanoid and so that u would get a Kill on ur Profile :/ anyway, lol I even forgot about the Animation Script...
Report Abuse
Firewarrior321 is not online. Firewarrior321
Joined: 09 Dec 2011
Total Posts: 3443
17 Jul 2014 11:13 AM
Or you could just copy and paste the part of the animation script that has to do with walking....

>I will rip out your duodenum
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
17 Jul 2014 11:18 AM
Because the current Animate script uses Animation objects instead of the Motor6Ds within the Torso, there are two main options that can be used to manipulate the arms.

1. You may temporarily remove the Left/Right Shoulder joint by setting its Parent to nil, and replace it with your own joint. This is the method I personally use to allow characters to wield a tool in their left arm.

2. You may temporarily disable the Animate script and manually animate the other body parts.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 11:25 AM
I think I choose 2. Plus that I can then add a lil spice to it of my own, like for Sprinting, cos oh yeah, my Gun will be kind of Advanced, it will have Sprinting and stuff...
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 12:30 PM
I got a Problem :/ I Disabled the Animate Script, I still cant Aim properly, and plus, yesterday wen I was Fixing my Uzi, I did the Animation Part as well, cos every single time I equipped it, my char woulndt hold it up, so I decided to do that myself, and so it worked, but now I added the Disabling Animation bit, and the whole thing stopped Working, I even Right Clicked and the Arm went Up a lil and quickly came back to were it was and then after I tried clicking again, nothing happened, plus, the Holding Position Stopped Working also!
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 12:53 PM
Tool.Equipped:connect(function()
AnimationScript.Disabled = true
RS.C0 = RS.C0 * CFrame.Angles(0, 0, 1)

Mouse.Button2Down:connect(function()
if Zoomed.Value == false then
Zoomed.Value = true
RS.C0 = RS.C0 * CFrame.Angles(-1, 0, 0)
end
end)

Mouse.Button2Up:connect(function()
if Zoomed == true then
Zoomed = false
RS.C0 = RS.C0 * CFrame.Angles(0, 0, 1)
end
end)
end)

everything Defined! The first time u Right Click it changes Zoom to true, but then wen u Release, it doesn't do a thing! and then u Right Click again and Release nothing Happens! and the Arm keeps going back!
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jul 2014 01:04 PM
You dont need to disable anything or do anything to change an arm's animation. Go into studio, press test, and type this in the command bar; it should work with no problems.

Workspace.Player1.Torso["Right Shoulder"].C0 = Workspace.Player1.Torso["Right Shoulder"].C0 * CFrame.Angles(math.rad(90),0,0)
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jul 2014 01:05 PM
Also, you had this;

RS.C0 = RS.C0 * CFrame.Angles(-1, 0, 0)

But you never changed it back.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 01:12 PM
I had

Tool.Unequipped:connect(function()
if Zoomed == true then
Zoomed = false
end
AnimationScript.Disabled = false
end)

also, thnx, but y, is it suppsoed to be Temporary and with math.rad its supposed to be kinda permanent?
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 01:14 PM
oops lol, forgot that I put the original Position after the end, lol got miuxed up
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jul 2014 01:32 PM
math.rad() uses angles, like 90 degrees. math.rad(90)
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 01:35 PM
am guessing that just adds a Rotation, but without it, that would be setting a certain Rotation I think :/
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 01:45 PM
Tool.Equipped:connect(function()
RS.C0 = RS.C0 * CFrame.Angles(0, 0, math.rad(10))

Mouse.Button2Down:connect(function()
if Zoomed.Value == false then
Zoomed.Value = true
repeat
wait()
RS.C0 = RS.C0 * CFrame.Angles(math.rad(-25), 0, 0)
until Zoomed.Value == false
end
end)

Mouse.Button2Up:connect(function()
if Zoomed.Value == true then
Zoomed.Value = false
RS.C0 = RS.C0 * CFrame.Angles(0, 0, math.rad(10))
end
end)
end)

Tool.Unequipped:connect(function()
if Zoomed.Value == true then
Zoomed.Value = false
RS.C0 = RS.C0 * CFrame.Angles(0, 0, 0)
end
end)

this is my new Script, but sadly I had to do a loop, cos then it would go back to it's Original Position after I Right Clicked, and I had to add a wait() or else the Game would Crash, any Suggestions? cos if u Right Clicked with the Current Script, u would see it going back and forward all the time (from the Original Position, to the Given Position and back) and ya know, no1 wants that
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jul 2014 01:46 PM
You can use CFrame.Angles(0,0,0) or CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)). Both are the same, but using math.rad() is easier since you know the angles youre using.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 01:54 PM
k thnx
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 03:05 PM
for some Reason it does the Position I tell it to do, but then wen I tell it to do another Position wen u Right Click, it just goes there and comes back! Help me here!!! I think it might be cos I called the Equipped function and under it I put the Position, then I put under it the Right Clicking Events, and so under them I do those other Positions, but a sure that thats not the case, cos there's no loop to keep doing that, so plz help me understamd the Problem, at least!
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 03:42 PM
so am guessing NO Suggestions???
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
17 Jul 2014 03:54 PM
Aight, F*ck this then!!! I can't make anything Properly! I give up! am gonna continue with my RC Tank!
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