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

[ANSWERED BY SELF ]How to stop parts from "Sleeping" / Freezing?

Asked by 4 years ago
Edited 4 years ago

So I am working on a game and the title screen has a small windmill that has a random slow speed that changes to look like wind is blowing it. It works perfectly in studio but in game it only moves a tiny for a split second when the speed value changes. Is there anyway to stop parts or a model from sleeping? Mabye some script function? Something like Model.CanSleep = falsewould be nice. Anyone got any ideas?

0
Can you please give me an example of your code I can look at? This would help me a lot in giving you a solid answer. DemGame 271 — 4y
0
while true do script.Parent.HingeConstraint.AngularVelocity = (math.random(0,100))/100 wait(5) end BlockBob12 3 — 4y
0
Don't worry, I just found a solution while messing around. I attatched a part to the body of the windmill and as it's constantly spinning it forces the game to keep all the neighbouring parts active BlockBob12 3 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

ANSWER: If you attach a small imbalanced motor to it (sort of like a vibration motor) but at a speed of around AngularVelocity 10 then the neighbouring parts will remain active. Hope this helps someone.

0
Please mark your own solution as accepted so other's needn't make an answer just to find out you already have an answer User#30567 0 — 4y
0
Nvm i just noticed your title was "answered by self" and not "angered by self" User#30567 0 — 4y
Ad

Answer this question