Parts are spinning when I am not playing game

Hey there! I am developing a plugin where you can insert different types of parts (Spinning parts, disappearing platforms, etc.). However, the spinning parts seem to be spinning IN studio. I have an idea of why this is, but I was wondering why Roblox Studio lets this happen, as I thought scripts only ran when playing the game. Here is a video:

Any help is appreciated!

Edit: I’m wondering if it because the local scripts are in a plugin, and local scripts in plugins run when the game isn’t running…?

Hello! Your thought is absolutely correct. Local Scripts will run in studio. I don’t know too much about plugins, but from my experience of TRYING to create plugins, I’m pretty sure you can make a folder as a child to the plugin script, and in the folder you have scripts that contain the spinning part script. When they create the part it copies and pastes the spinning script into the part and it will spin once you play the game.

NOTE: you will have to publish the plugin to Roblox, as saving it locally gets rid of the children in it, but you can just click a button that says “Remake”… or something like that.

Have a nice day,
Grayseon

1 Like

Ah ok, this helps a lot, thanks!