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

Is it possible to replicate tweening from a LocalScript across the server/other clients?

Asked by 5 years ago

I am making a GUI that runs on a LocalScript to control blinds' size and position using TweenService. Although this would be great if I wanted to have only the client see the tweening, I want every client in the server to see the tweening of the doors. Is there any way I could do this? !

1
Use a remote event, :FireAllClients, and let all the clients lower the blinds themselves. RubenKan 3615 — 5y
0
Cool, let me try that out Pianotech 48 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

I took RubenKan's advice and was able to solve the problem using RemoteEvents. There are three parts to my system

1: The original GUI LocalScript inside of StarterGui I replaced the part of the script that changes the size and position with remote:FireServer("the info"), which sends the information to the server.

2: A new Script inside of ServerScriptService This new script uses remote.OnServerEvent and then fires all the clients with :FireAllClients(info).

3: A new LocalScript also inside of StarterGui with the GUI script This script uses remote.OnClientEvent that connects to a function with if statements for what has to be done according to the original string.

Ad

Answer this question