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: Increasing AngularVelocity Script Not Repeating..

Previous Thread :: Next Thread 
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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 is not online. 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
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
02 Aug 2013 07:09 PM
Parts don't have an "angularvelocity".
The output would tell you this.
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
02 Aug 2013 07:18 PM
This doesn't go in a block. It's .Parent is a BodyAngularVelocity.
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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 is not online. 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
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
02 Aug 2013 07:31 PM
Thank you. :)
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
02 Aug 2013 07:36 PM
Wait.. That didn't work, even after I added the variables.
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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 is not online. Jtmt88
Joined: 07 Jun 2008
Total Posts: 4346
02 Aug 2013 07:38 PM
Can you copy the error for us?
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
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 is not online. 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
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
02 Aug 2013 07:51 PM
Didn't work.. It still endlessly repeats.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Aug 2013 08:08 PM
You never increased Y
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
02 Aug 2013 08:12 PM
'script.Parent.angularvelocity = script.Parent.angularvelocity + Vector3.new(0, 1, 0)'...
Report Abuse
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
04 Aug 2013 11:42 PM
I still need help. ._.
Report Abuse
clc02 is not online. 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
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
05 Aug 2013 03:48 PM
Thank you, but that one doesn't repeat at all.
Report Abuse
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
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
evilishnessII is not online. evilishnessII
Joined: 26 Mar 2011
Total Posts: 10275
05 Aug 2013 04:00 PM
Still not working.. :\
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