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?
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.