How to get time given velocity and distance

Hello I’m trying to make a meteor fall but what I tried doesn’t work

code:

local height = (partPos - mousePos).magnitude
local velocity = 50
local t = height/velocity

Hi!

Could you provide a bit more explanation as to what you’re trying to do? There’s not enough code nor explanation to assist you.

Thanks,
bubba

Basically I want to drop a ball and when it gets to the point where the player clicked (mousePos), the ball stops

gif

block.PrimaryPart.AssemblyLinearVelocity = -(block.PrimaryPart.CFrame.UpVector * 50)

task.wait(t)
block.PrimaryPart.Anchored = true

Where partPos, mousePos came from.

mousePos is equal to mouse.Hit.position
partPos is the initial position of the ball which is equal to = mousePos + Vector3.new(0, 100, 0)

And magnitude is about this I think.
https://developer.roblox.com/en-us/api-reference/class/LineForce