Will this function replicate to the server so all players can see whats happening to the brick?
Asked by
8 years ago Edited 8 years ago
Hi, I have this function
1 | game:GetService( "RunService" ).RenderStepped:connect( function () |
3 | obj.BodyVelocity.Velocity = obj.CFrame.lookVector*speed |
4 | obj.BodyVelocity.P = 1250 |
5 | obj.BodyVelocity.MaxForce = Vector 3. new( 3000 , 3000 , 3000 ) |
I use render stepped so the objects CFrame is constantly updated. However, I then have to put htis in a local script. However, I want to make sure that everyone can see that the brick is turning. In the function, I am changing the brick's BodyVelocity property, so I'm wondering if the local script changing that will replicate the effect to the server?
Or will I have to put in a remote event inside the if statement that will fire every frame to the server, and then in a server script change the brick's velocity? Thanks!