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: set desired angle

Previous Thread :: Next Thread 
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 01:20 PM
Using Motors, how would I rotate the arms in all ways, x,y, and z, it seems like you can only use one number with set desired angle.
Report Abuse
domorox17 is not online. domorox17
Joined: 06 Mar 2012
Total Posts: 1710
28 Nov 2013 01:22 PM
yeah i noticed that to. if u set diesired angle it is bery limited. i want to know this to
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 02:46 PM
bump
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 04:05 PM
bump
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 04:05 PM
use the motors in the torso
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 04:38 PM
i don't understand that cnt, i am using the motors in the torso, yet it only allows me to use one number
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 04:48 PM
torso.Neck.C0 = torso.Neck.C0 * CFrame.fromEulerAngles(0, 0, math.pi/2)

will rotate the neck 90 degrees around the z axis
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 04:57 PM
doesn't work, i see no change in the player.
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 05:01 PM
7:00:27.689 - Workspace.Player1.LocalScript:28: attempt to call field 'fromEulerAngles' (a nil value)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:05 PM
fromEulerAnglesXYZ
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 05:07 PM
it works, but it is kinda choppy, how do i make it transition smoothly?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:11 PM
Use a loop

for i = 0, 90 do
Neck.C0 = Neck.C0 * CFrame.Angles(0, 0, math.rad(1))
wait()
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:11 PM
for i = 1, 90**
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 05:19 PM
how do you run two for loops at the same time?
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
28 Nov 2013 05:24 PM
why would you need to?

you just run every thing in the same loop.

for i = 1,90 do
x = i
end

for i = 1,90 do
z = i
end

DO THIS TO RUN BOTH AT SAME TIME
for i = 1,90 do
x = i
z = i
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:25 PM
^ go efficiency c;
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
28 Nov 2013 05:28 PM
you don't understand, say i had two loops like :

for i = 1,50
end

and for i = 1,90
end



i want to run them at the same time, but how?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 05:30 PM
coroutines, spawns, or delays, etc.

But here's one weird thing to do:

for i = 1, 50 do

if i == 50 then
for i = 1, 39 do
end

end

lol I suggest not doing 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