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 do I make this move in only the Y axis?

Previous Thread :: Next Thread 
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
21 Nov 2012 11:33 PM
How do I make this move in only the Y axis?


Torso.CFrame = CFrame.new(Torso.Position,mouse.Hit.p)
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:35 PM
The only thing you're changing is the direction of the torso anyway... What exactly do you want to limit to the Y axis?

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
21 Nov 2012 11:37 PM
Yeah I ment ONLY the y axis
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:38 PM
Torso.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0, 5, 0))
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:39 PM
...I'm going to assume you're referring to the mouse.

Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Torso.Position.X, mouse.Hit.y, Torso.Position.Z))

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:39 PM
@free - You didn't read his line properly.

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:40 PM
I'd figured he meant like a teleport. Lol
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:40 PM
(He's being very vague)
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
21 Nov 2012 11:43 PM
Works, Thanks.
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:44 PM
If that was directed to me, You're welcome.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:45 PM
No problem, Brayden.

It couldn't have been yours, free, you didn't set the direction like he wanted it to. He didn't want to move the torso, he wanted to change its direction.

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
21 Nov 2012 11:45 PM
Well doesnt moving the torso move the whole body? lol
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:46 PM
Yes.

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:49 PM
Ehm. Alright, I was just confused why he'd need such a thing as this. Oh well, people have their own reasons.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:50 PM
Well, judging from the fact that he's making the character face the mouse's position in the Y axis, I'm going to make a drastic and highly unrealistic guess that he wants to make the character face the mouse's vertical position. :P

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:52 PM
I assumed that too, after I looked at what you were saying. I just don't get why he'd need that is all.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
21 Nov 2012 11:54 PM
Special effects? Looks cool? Why does he need to make games on ROBLOX? Why does he need to be on ROBLOX? Why does he need to play games at all? Why does he have to use computers? Why does he have to use electronics? Why does he have to know what electronics are? Why does he need to know what anything is? Why does he need to live?

Don't question it, man. xD

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
21 Nov 2012 11:57 PM
B-b-but I question things... I mean, isn't the whole "Enlightenment" era about questioning things?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
22 Nov 2012 12:00 AM
Question things that are worth questioning. How do children become adults? That is a worthwhile question, because it leads to discovery and self-enlightenment. Why does some random guy want a specific thing in his game? That isn't a worthwhile question. What will you gain aside from his reasoning for wanting that in his game? Nothing.

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
22 Nov 2012 12:06 AM
Blah. You win this time. And the time you claimed to be the best scripter. But I will be more frequent in SH, so expect to lose eventually. :o
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
22 Nov 2012 12:15 AM
I was kidding about the best scripter thing, lol. You should have noticed it by the fact that I was speaking in third person.

but ok

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
freerunner1234 is not online. freerunner1234
Joined: 23 Nov 2008
Total Posts: 2078
22 Nov 2012 12:53 AM
It was kind of a joke, me mentioning that. You should have noticed that by the way I responded in the post.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
22 Nov 2012 09:32 AM
Mine was a joke too. :P

http://wiki.roblox.com/index.php/User:ElectricBlaze
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
22 Nov 2012 09:46 AM
ElectricBlaze for President.

That's what Robloxia needs; a Philosipher King (besides a second, viable Polictical Party).

Yeah, I once faced a Player toward the direction he was shooting with manipulations like that. It did not look so good; but live and learn.

When making cheesy effects; you always learn a completely different Good effect along the way....

You can't Lose,
Brian
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
22 Nov 2012 10:03 AM
I'm an expert philosopher, politician, historian, mathematician, programmer, physicist (not really an expert at that, but I'm really good at it), and lots of other stuff.

I'm an academic marvel.

No, I am not arrogant. I am merely omniscient. xD

http://wiki.roblox.com/index.php/User:ElectricBlaze
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