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

why aren't cloned scripts from Lighting or ReplicatedStorage running ?

Asked by 5 years ago

I'm trying to clone a script from either game.Lighting or game.ReplicatedStorage and then run it. The game properly clones the script into game.Workspace, but it does not run it. The script is very simple, something like :

while wait() do
    print("Hello world!")   
end

I'm puzzled, no idea why this is happening. The "disabled" property is turned to false, so that's not the issue. Pls help.

0
can you show us the script you're using to clone it? also what kind of script, and where is it. DinozCreates 1070 — 5y
0
maybe try setting it to disabled in replicatedstorage then when cloning it enable it when its parent is workspace. zor_os 70 — 5y
0
@Dinoz : it's a LocalScript, located in StarterGui. When you press a certain key, it clones the script and parent it to Workspace. The script is initially disabled. After cloning and parenting, it gets enabled. proclet 7 — 5y
0
Use a ServerScript for clone items from ReplicatedStorage/Lighting. yHasteeD 1819 — 5y

Answer this question