Hi, I am trying to make a ball that you can move around with the arrows. I am using body velocity to move the ball, but I have found some unexpected behavior. When I change the body velocity on the server, the ball moves with no problem. Here is what it looks like. -https://gyazo.com/3b69e4039c0731380e62c66ce6b4dafa
Unforunately, when I change it via a local script I experience some odd behavior. Most of the time the ball will not move at all, while other times it will move a little and then stop.
Here is the code:
local UserInputService = game:GetService("UserInputService") local myBall = game.Workspace.Ball UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.W then myBall.BodyVelocity.Velocity = Vector3.new(1000,0,0) end end)
I don’t want to have to fire a lot of remote events and handle it all on the server, so what can I do to fix this?