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

Is there a faster way to send info as in client > server > all clients?

Asked by 4 years ago

==REMOTE EVENTS==

--Client

game.ReplicatedStorage.PositionEvent:FireServer(UDim2.new(mover.Position.X.Scale, 0.474, mover.Position.Y.Scale - 0.010, 0.428))

-- Server

game.ReplicatedStorage.PositionEvent.OnServerEvent:Connect(function(player, argument) game.ReplicatedStorage.PositionReplierEvent:FireAllClients(player, argument) end)

-- All Clients

game.ReplicatedStorage.PositionReplierEvent.OnClientEvent:Connect(function(player, argument) script.Parent[player.Name].Position = argument end)

==Preview==

--Gyazo

https://gyazo.com/9225aa8d893d9c0cbdb820a28b1fb93d

This works but is slow, is there a faster way to this?

(Im talking about when it goes upwards BTW)

The other directions are the unmodified ones on client just incase anyones wondering, which seems to be fast but but remote events make it slow, any faster way to do this?

Answer this question