Making a Clientside Object Spin

Hello, I would like to figure out how to make an object, cloned by a localscript from lighting into Workspace spin.

The object in question is currently in Lighting. When I use a localscript to clone it into the workspace, it doesn’t spin. The object has a regular script inside of it that makes it spin indefinitely using a while true do loop.

I would like to know how to fix this.

3 Likes

Serverscripts (regular scripts) only runs on the server. Anything cloned on the client only runs on the client. I think you can see the issue here. The solution is to ditch the serverscript inside the part and use a localscript instead.

Hint: You can turn the regular script into a localscript by changing the RunContext property from Legacy to Client.

2 Likes

Thank you very much! I was unsure if I a normal script or a clientscript would’ve worked. :smiling_face:

I love telling beginners about this feature.

1 Like

I was experimenting with date and time-based events and this whole thing was for something based on that, which was why it had to be clientside. It’s ROUGH. :anxious_face_with_sweat:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.