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 |
|
|
|
| 14 Aug 2015 03:15 PM |
| What are the error messages? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Aug 2015 04:16 PM |
| If you call everyone an idiot you won't get any help. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|