|
| 02 Aug 2013 07:05 PM |
T = 2 Y = script.Parent.angularvelocity.Y
while true do wait(T/500) if Y < 15 then wait(T/15) script.Parent.angularvelocity = Vector3.new(0, Y+1, 0) end end
--[[ This should be repeating.. Why is it not? ]] |
|
|
| Report Abuse |
|
|
Jtmt88
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 4346 |
|
|
| 02 Aug 2013 07:08 PM |
script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0)
|
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:09 PM |
Parts don't have an "angularvelocity". The output would tell you this. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:18 PM |
| This doesn't go in a block. It's .Parent is a BodyAngularVelocity. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:23 PM |
---[[ Thank you, JTMT, but now it does this weird thing where it won't stop repeating, even after exceeding Y = 15.. ]]
T = 2 Y = script.Parent.angularvelocity.Y
while true do wait(T/500) if Y < 15 then wait(T/15) script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0) wait(T/500) end end
|
|
|
| Report Abuse |
|
|
Jtmt88
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 4346 |
|
|
| 02 Aug 2013 07:27 PM |
repeat wait(T/500) if Y < 15 then wait(T/15) script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0) wait(T/500) until Y = 15
|
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Aug 2013 07:36 PM |
| Wait.. That didn't work, even after I added the variables. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:37 PM |
| .. There's a red line under 'until Y = 15'.. I tried changing it to 'until Y == 15', but the line stayed. |
|
|
| Report Abuse |
|
|
Jtmt88
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 4346 |
|
|
| 02 Aug 2013 07:38 PM |
| Can you copy the error for us? |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:45 PM |
I'm sorry, I guess I fixed it, but now it's endlessly repeating, again.. Here's the script, because I don't remember what I changed :
T = 2 Y = script.Parent.angularvelocity.Y
repeat wait(T/999) if Y < 15 then wait(T/15) script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0) wait(T/999) end until Y == 15
|
|
|
| Report Abuse |
|
|
Jtmt88
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 4346 |
|
|
| 02 Aug 2013 07:47 PM |
repeat wait(T/999) if Y < 15 then wait(T/15) script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0) wait(T/999) end until Y >= 15 |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2013 07:51 PM |
| Didn't work.. It still endlessly repeats. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 02 Aug 2013 08:12 PM |
| 'script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0)'... |
|
|
| Report Abuse |
|
|
| |
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 04 Aug 2013 11:49 PM |
Altered the original, T = 2 Y = script.Parent.angularvelocity.Y --Note, this will stay at whatever it is when it's called, if you want it to keep checking you have to keep using the object.Y, you can't set a variable to point to a property
while true do wait(T/500) if script.Parent.angularvelocity.Y < 15 then wait(T/15) script.Parent.angularvelocity = Vector3.new(0, Y+1, 0) end end |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 03:48 PM |
| Thank you, but that one doesn't repeat at all. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 03:55 PM |
T = 2 v = script.Parent.angularvelocity
repeat wait(T/500) wait(T/15) script.Parent.angularvelocity = Vector3.new(0, v.Y+1, 0) until v.Y > 15
|
|
|
| Report Abuse |
|
|
| |
|