Client to server issues

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make the client control the velocity of a moving part (ball) overriding the server. I’m making a game like slope and I want control to be as responsive as possible.

  2. What is the issue? Include screenshots / videos if possible!
    My issue is the system of controlling the velocity on the client works on studio, but when testing out the game the server takes priority. (not wanted)

  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    I’ve tried to get the client to send the data of its version of the velocity of the part to the server, however there are latency issues. (the code:
    client:

task.spawn(function()
	while true do
		task.wait()
		velocity = movepart.AssemblyLinearVelocity
		script_move.move:FireServer(velocity)
	end
end)


server:

local movepart = script.Parent.MovePart

script.move.OnServerEvent:Connect(function(plr,velocity)
	--print(newv)
	--print(stop)
	
	movepart.AssemblyLinearVelocity = 
		Vector3.new(velocity.X,movepart.AssemblyLinearVelocity.Y,movepart.AssemblyLinearVelocity.Z) 
end)

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
As I’ve said before, I want the client to have complete control over the velocity of this moving part to remove any latency, I understand that exploiters would be able to take advantage of this but honestly I do not care.

Thank you for reading.

NetworkOwnerShip

Roblox Documentation has that

Rather than spamming the remote request (which is likely to cause performance issues), I would recommend simply setting the network owner of the part.

In a server script, call

movepart:SetNetworkOwner(PLAYER)

you can read more about network ownership here