Simple answer: You can't.
Any changes made by LocalScripts will not be read by the server. This includes trying to enable scripts from the client. For actions that have to be done, such as this action, you will have to use a normal Script, otherwise you'll be stuck at a dead end.
That being said, client-server communication can be accomplished using RemoteEvents
and/or RemoteFunctions
. These instances allow a script to communicate with a script "on the other side of the wall". (For reference, BindableEvents
and BindableFunctions
do not have this "wall", and behave much like how you'd socialize with other people.) Imagine the wall has a door that can only be opened with a key. That key is the signal sent by the event or function to allow the script on the other side to perform instructions based on the signal.
For RemoteEvents
, FireServer(args)
will send a signal to an awaiting script on the server, passing the player who fired the signal as well as a tuple of arguments args
, if given. FireClient(player, args)
sends a signal to the client player
with a tuple of arguments args
, if given. FireAllClients(args)
sends a signal to every client connected to the server and passes a tuple of arguments args
, if given.
Since you are doing this from the client, FireServer()
should be used, and the script waiting for the signal should be a normal Script that will enable the desired script(s).