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

GetService('RunService'):Stop() crashing Studio. Any ideas?

Asked by 4 years ago

I got the source code from the old Roblox Animation Plugin to modify It, and add some useful features such as automatic leg bending. The issue is whenever you stop the animation after playing It, Roblox Studio crashes.

This version is that one where whenever you play the animation, It automatically runs Studio test mode with this code line:

game:GetService('RunService'):Run()

However, when you click on the Stop button on the plugin GUI, this other code line is executed, and this is the exact moment Roblox Studio freezes:

game:GetService('RunService'):Stop()

I have added several prints betwen each line, and I can confirm this is the line that causes Roblox Studio to stop working. The rest of the code is fine. Do anyone know what's the issue?

(Sorry for my English)

0
The RunService is a core service, per quota "The RunService contains methods and events for time-management as well as for managing the context in which the game or script is running." Ending a core service forces the game to stop. DeceptiveCaster 3761 — 4y
0
Yes. This function is used to stop test mode/game, but It shouldn't crash Studio like that masterjosue1998 116 — 4y
0
Well. I solved the issue by using :Pause() instead of Stop(). Since It's a plugin to create animations, the place status doesn't matter. Anyways, I think this is just a Roblox Studio bug e_e masterjosue1998 116 — 4y
0
game:Get service("RunService"):Stop() just stops the game TheRealPotatoChips 793 — 4y

Answer this question