LocalScripts that create/copy Scripts?

Hi again,

I have some functionality that handles animations and tweening which currently happens server side. I want to port this to work local only to alleviate some of the server load. Now I would like to make as few changes as possible. My idea is this:

  1. Make local scripts that handle the spawning of the models with the animations.
  2. Leave the actual scripts inside the models since they should only appear on the clients and NOT on the server.

I tested this idea with some simple scripts and it does not seem to work. Any script created by a local script will not work. Am I doing something wrong or is this just not supposed to work?

Thanks
Redridge

2 Likes

If you are cloning server scripts from a localscript the server script’s code will not execute.

4 Likes