Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

(SOLVED) For some reason, my delayed motor script is not working?

Asked by 3 years ago
Edited 3 years ago

Alright so all I would need help with is to get my script working. I already got the motor part working, but all I would need is a script to make it stop spinning after a certain amount of time. The script that I have so far is this:

wait (2) Script.Parent.HingeConstraint.AngularVelocity = 0

But it's not working for some reason. Any help would be appreciated. Thanks

0
Any errors in the output? Did you hit enter correctly to make a new code line? 2_MMZ 1059 — 3y
0
Sorry, I'm not sure what you mean when you ask if there's any errors in the output. And yes, I knew that I had to hit enter and make a new code line for the rest of the script after I had typed "wait (2)". The problem is that when I go into playing mode to test my game, no matter how long I wait, the script still doesn't seem to affect the AngularVelocity of the motor XxJJ_p14yzxX 0 — 3y
0
Sorry about the confusion, but I figured it out just now. All it was was a capitalization error in the word "script". Thanks for your help. XxJJ_p14yzxX 0 — 3y

Answer this question