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

How do I make the server script activate a function for a local script?

Asked by 7 years ago

Basically, I am trying to make it such that the gui tweening animations are in sync with the server script. The server script will be the one activating the function at the right time to the local script without the local script having to manually check for the function in the server script.

Remote functions and events only allow the local script to check on the server script function but does not sync with the timing of the server script running.

0
Just use the InvokeClient method of a remote function? NotsoPenguin 705 — 7y
0
The local script still has to call the server script so the time is not right again AbandonedRick 112 — 7y
0
This might be a bit of a long way but why not put a lot of Values in ReplicatedStorage and have the server script change the values. Like have the local script wait for the value to change and then run the function. [Using: "value.Changed:connect(function()"]..... if that makes any sense.... Foreshadowed_Dawn 4 — 7y

Answer this question