Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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 = false would be nice. Anyone got any ideas?

3 comments

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.

0

while true do script.Parent.HingeConstraint.AngularVelocity = (math.random(0,100))/100 wait(5) end

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

1 answer

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.

2 comments

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

0

Nvm i just noticed your title was "answered by self" and not "angered by self"

This discussion is preserved as it was. New answers, comments, and votes are closed.