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

script:Clone() doesn't work between local and server scripts?

Asked by 4 years ago

While coding my game, I came across an interesting feature of Roblox's Engine. If you try to copy a server script (I'm not sure if this is reproducible with local scripts.) within a local script, it will not behave properly. For example, in my game, I have a local script copying a server script into the workspace, but the script does not run. Not only this, but server scripts will not be able to detected object cloned in local scripts with the ChildAdded() event.

Is this intended? If it is, shouldn't this be better documented in the Roblox API? Figuring this out on your own takes away valuable coding time, complicates the problem when you build a system which doesn't factor it in, and is unnecessary.

I'm aware I could just be dumb and could have missed the section where it describes this. My apologies if this is the case.

0
can u see it in the explorer while running the game? (the copied script) if the serverscript is where the client cant see it, it cant copy it as it doesnt know its there, depends on my first question misterviggo 61 — 4y

Answer this question