Cloned script isn't running?

  1. What do you want to achieve? Keep it simple and clear!
    I currently am trying to clone a part that has a server script in it.
  2. What is the issue? Include screenshots / videos if possible!
    When I clone the part with the script, the script does not run when it is put into workspace.
    My setup is, I have a part in replicated storage and inside of it is a script. I then clone this part from a localscript. The clone is parented into workspace. It appears to look fine, however my script within the part does not run.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I suspect it may have to do with me cloning a server script within a local script. Is there a solution?

I can post the code if needed however, I don’t believe it matters.

Server Scripts cannot run if you’re cloning it within a LocalScript, one reason is to prevent security breaches from occurring (Preferably exploits of that sort)

Just handle your cloning from within the Script inside the Part, and move that line of code onto your LocalScript instead & use RemoteEvents to handle Client/Server transportation if you want to change something on the Server to keep it properly secure

2 Likes

Thanks, this wasn’t made clear on Roblox Documentation for :Clone()

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