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

How do i prevent a tool's local scripts from breaking when cloned?

Asked by
Sorukan 240 Moderation Voter
5 years ago

I have a couple tools with local scripts inside them and i stored them in the ServerStorage so that i can clone it to a player's backpack whenever they need it. I know that local scripts only work in certain places and i'm guessing this is the cause of the problem since local scripts don't work in ServerStorage and they break when it gets cloned. It doesn't really make sense to store all the tools inside the other places such as ReplicatedFirst or StarterGui so i'm wondering what can i do to prevent the local scripts from breaking when cloned.

0
Personally, I've never put a LocalScript in each tool. I use single script architecture. Basically, I have one LocalScript on the client which manages module scripts which handle all tool/gui/client stuff. User#25115 0 — 5y

Answer this question