So there's a box, a button that resets the box, a door and a button that opens that door. Everything works perfectly in normal conditions but I need these objects to be local in order to prevent chaos with multiple people. The problem is that when I tested, scripts inside those local objects stop working. Neither of the buttons work. I tried changing the regular script to a local one but nothing changed. I have no idea what to do...
Since it was asked I will also include this: (it works but only when created by the server)
script.Parent.ClickDetector.MouseClick:Connect(function()
script.Parent.Texture.Color3 = script.Parent.charged.Value
script.Parent.platform.Value.Texture.Color3 = script.Parent.charged.Value
wait(.2)
script.Parent.Texture.Color3 = script.Parent.off.Value
script.Parent.platform.Value.Texture.Color3 = script.Parent.off.Value
script.Parent.cube.Value.CFrame = script.Parent.platform.Value.CFrame + Vector3.new(0,6,0)
end)

3 comments
Show us your script.
It's not a script thing it's the execution. As I said, it works perfectly when the objects are created on server and not on client.
You can't use LocalScripts inside objects that are not on the client, parent the LocalScript to the client and change the code to fit your uses