How do I enable a script through serverstorage

In my ServerScriptService, there’s a script that should enable a disabled script but it doesn’t work.

The ServerScriptService script (I shortened it):

local workspacepainting = workspace.Painting:WaitForChild("Script")

workspacepainting.Disabled = false

The code above causes the painting’s script to become enabled, but the painting’s script doesn’t function. And if I enable the painting’s script, it works fine.

local workspacepainting = game:GetService("Workspace").Painting:WaitForChild("Script")

workspacepainting.Disabled = false

Not too sure if it will work, lmk.

The script got enabled but it isn’t functioning.

I think the problem was in the script itself, sorry about that. I had a local player thing that was broken.

1 Like

Scripts inside the ServerStorage container don’t execute.

1 Like