Is there any way to execute local script from server script?

is putting invisble script inside the player backpack will that work?

2 Likes

Sounds like you should look into Bindable Events and Functions | Roblox Creator Documentation they can be used to activate code back and forth across the client/server boundary.

image
how to make it like this the client fire server and the server fire back to the client

By sending an event to the server, and then sending that event back to the client.

Use a RemoteFunction to send an event from a LocalScript, then have the Server Script return a value to the LocalScript

1 Like

how should i change the sky in local script like client fire server and server send a remote to client change the sky?

this work?

rep.Stand.KC.TEClient.OnServerClient:Connect(function)

and

rep.Stand.KC.TEClient:FireClient(Player)

On the server you should have something like:

remoteEvent:FireClient(player)

And on the client you should have something like

remoteEvent.OnClientEvent:Connect(yourfunction)

You would replace “yourfunction” with the title of the function your using in your local script to change the sky.