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: Setting the Y of a CFrame

Previous Thread :: Next Thread 
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
14 Aug 2015 03:13 PM
if CC.CoordinateFrame.Y > 2.5 then
CC.CoordinateFrame.Y = 2.5
elseif CC.CoordinateFrame.Y < -2.5 then
CC.CoordinateFrame.Y = -2.5
end

That errors, so how do I do it?

Zaxerion/McChicken72, iSpecializinq, TheNewChicken, alot of others. Add approx 5k posts.
Report Abuse
TheSubatomicalWorld is not online. TheSubatomicalWorld
Joined: 16 Jun 2013
Total Posts: 1193
14 Aug 2015 03:15 PM
What are the error messages?
Report Abuse
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
14 Aug 2015 03:23 PM
Omg your dumb.

You CANNOT set a Y of the CFrame. How would I do it?

Zaxerion/McChicken72, iSpecializinq, TheNewChicken, alot of others. Add approx 5k posts.
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
14 Aug 2015 03:25 PM
You're calling him dumb?

You can't set the Y of a CFrame. Y isn't a part of a CFrame value. Y is a part of a position value. Therefor:

CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p.X,THEY,.CoordinateFrame.p.Z)

You can figure out how to make sure the angles apply later :)


Check out my in-game scripting tutorial! [ 279086510 ]
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
14 Aug 2015 03:25 PM
I mistyped something in there. Forgot a CC at the end.


Check out my in-game scripting tutorial! [ 279086510 ]
Report Abuse
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
14 Aug 2015 04:11 PM
Idiot, i said you couldnt.

Zaxerion/McChicken72, iSpecializinq, TheNewChicken, alot of others. Add approx 5k posts.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
14 Aug 2015 04:16 PM
If you call everyone an idiot you won't get any help.
Report Abuse
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
14 Aug 2015 04:17 PM
Sorry, but they are dull.

Zaxerion/McChicken72, iSpecializinq, TheNewChicken, alot of others. Add approx 5k posts.
Report Abuse
lostend is not online. lostend
Joined: 21 Aug 2011
Total Posts: 8265
14 Aug 2015 05:48 PM
sorry you're a dumbass
i dont want to help you
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