Help with AssemblyLinearVelocity

Can somebody explain how AssemblyLinearVelocity works? I have tried using AssemblyLinearVelocity for a conveyor type part, but it never works.

What is the issue? When I use LookVector, it works, but when I use a Vector3 value, it doesn’t.

What solutions have you tried so far? I tried to use LinearVelocity constraint, till I found out that it can’t be used to make a conveyor.

This is the code I’m working on, so can somebody tell me what the problem is?

task.spawn(function()
    while true do
        local rngx = Random.new()
        local rngz = Random.new()
        local Randomx = rngx:NextInteger(8, 17)
        local Randomz = rngz:NextInteger(10, 19)

        Water.AssemblyLinearVelocity = Vector3.new(Randomx, 0, Randomz)
        print(`[Pool] Setting Velocity to {Randomx}, 0, {Randomz}.`)

        task.wait(5)
    end
end)
1 Like

AssemblyLinearVelocity is used to apply a linear velocity in X , Y , Z format.
Normally, anything that interacts with an object that has it will also get it.

To make a conveyor belt, anchor your part and change the task.wait(5) to task.wait(0.2) or something smaller for now.

1 Like

the property describes the part’s current velocity using a vector3 that represents its direction and magnitude of the velocity (for example if velocity was Vector3.new(2, 0, 0) its going two studs per seconds to the right)

the fix for the conveyor not working is already on this topic

1 Like

The part is already anchored, but I’ll try changing the wait.

2 Likes