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: Manual Rotate?

Previous Thread :: Next Thread 
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
09 Jul 2015 04:38 AM
How would I do when you press A the characters torso goes to -90 Y and when you press D the torso goes to 90 Y. I set auto-rotate to false on the players humanoid.

But I don't want to increment 90 or -90, I want it to be set specifically to 90 and -90

BTW when I said 90 Y and -90 Y I mean cframe
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
09 Jul 2015 06:53 AM
use a local script, then

when key 'A' is pressed:
local full = 2*math.pi
character.Torso.CFrame = CFrame.new(character.Torso.Position) * CFrame.Angles(0,full/4,0)
-- where full/4 = 360/4 = 90
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
09 Jul 2015 07:49 AM
bump

can I have the whole script? sorry but I have ugly code when it comes to pressing a key :\
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
09 Jul 2015 10:19 AM
bump
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
09 Jul 2015 11:47 AM
bwhamp
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
09 Jul 2015 12:37 PM
bump... again
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
09 Jul 2015 02:35 PM
bump

*sigh
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
10 Jul 2015 12:42 AM
bump

a lot of bumps
Report Abuse
Joeypm1 is not online. Joeypm1
Joined: 25 Jul 2010
Total Posts: 49
10 Jul 2015 12:46 AM
m = game.Players.LocalPlayer
m.KeyDown:connect(function(key)
if key == "a" then
--code with A key
end
if key == "d" then
--code with d key
end
end)


^ i think that is how it works
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