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: How can I make this work?

Previous Thread :: Next Thread 
onetimeaccount123 is not online. onetimeaccount123
Joined: 20 Oct 2011
Total Posts: 189
10 Jul 2013 03:02 AM
I have this:

ch = game.Workspace.onetimeaccount123
while true do
wait()
ch.Torso.CFrame = CFrame.new(ch.Torso.Position.X,ch.Torso.Position.Y,ch.Torso.Position.Z)*CFrame.Angles(0,math.pi*1.5,0)
end

and it keeps me facing a direction but it won't let me move properly. Is there anyway that I can JUST keep the angle?
Report Abuse
ALERIFICALNEUMORAITI is not online. ALERIFICALNEUMORAITI
Joined: 21 Nov 2010
Total Posts: 302
10 Jul 2013 04:03 AM
use a bodygyro

ch = workspace.onetimeaccount123
local bg = Instance.new("BodyGyro", ch.Torso)
bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)

while wait() do
bg.cframe = CFrame.new(ch.Torso.CFrame.p)*CFrame.Angles(0, math.pi*1.5, 0)
end
Report Abuse
onetimeaccount123 is not online. onetimeaccount123
Joined: 20 Oct 2011
Total Posts: 189
10 Jul 2013 05:37 AM
Problem is that's permanent, until you die at least. I probably should have mentioned that I'd like to be able to change the angle at some point
Report Abuse
onetimeaccount123 is not online. onetimeaccount123
Joined: 20 Oct 2011
Total Posts: 189
10 Jul 2013 05:48 AM
Problem is that's permanent, until you die at least. I probably should have mentioned that I'd like to be able to change the angle at some point
Report Abuse
DrWaffler is not online. DrWaffler
Joined: 16 Sep 2011
Total Posts: 4248
10 Jul 2013 05:49 AM
It isn't permanent, just delete the Gyro when you no longer need it.
Report Abuse
onetimeaccount123 is not online. onetimeaccount123
Joined: 20 Oct 2011
Total Posts: 189
11 Jul 2013 11:15 AM
That allows you to move freely. I need to eventually change the angle so that their fixed in a different direction. This eventually ends up not working for me
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