Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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?

2 comments

1

Use a remote event, :FireAllClients, and let all the clients lower the blinds themselves.

0

Cool, let me try that out

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.