BodyPosition Part Not Moving Towards Position

I made a simple script that makes a ball follow a mouse’s 3D position, the ball’s BodyPosition.Position is constantly updating as it should, however, the ball does not move.

The ball’s MaxForce is infinite and I’ve changed the power value to a reasonably big number.

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local part = workspace.Ball

function movePart()
	print(mouse.Hit.Z)
	part.BodyPosition.Position = Vector3.new(mouse.Hit.X, 2, mouse.Hit.Z)
end

mouse.Move:connect(movePart)
1 Like

Using mouse.Move is not as viable as RenderStepped

game:GetService("RunService").RenderStepped:Connect(function()

Ball.Position = Vector3.new(Mouse.Hit.X, 0, Mouse.Hit.Z)

end)

1 Like

Is the Body Position strong enough? Maybe use BindToRender step or .RenderStepped!

1 Like

Yeah using runSerivce is literally 10x beter than mouse.Move lol

1 Like

Is the ball anchored? Also, make sure to not set it too high or it will just fly off the map.

This script should be in a local script. So, make sure it is in the starter player/character folders.