How to make part smooth tweens to mouse.Hit?

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!
    Im need like part spawns nearby humanoid and smooth to mouse.Hit
    its work but not that i want

  2. What is the issue? Include screenshots / videos if possible!
    So fast

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried linear velocity,i didnt found solution
    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!
    If u didnt understand ask

local SpawnPart = {}

function SpawnPart.KnockBackSkill(CFram:CFrame,Size,Speed,Mouse)
	local SpawnPartModule = require(game.ReplicatedStorage:WaitForChild("Modules"):WaitForChild("RockModule"))
	local TweenS = game:GetService("TweenService")
	local Player = game.Players.LocalPlayer.Character.HumanoidRootPart
	local Hum = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
	local Humanoid = game.Players.LocalPlayer.Character.Humanoid
	local Part ="Part")
	Part.CFrame = Mouse
	Part.Anchored = false
	Part.CanCollide = false
	Part.Parent = workspace
	Part.Size =,Size,Size)
	local Tween = TweenS:Create(Part,,{CFrame = Part.CFrame *,0,-10)})
	Part.CFrame = CFram.CFrame *,0,-3)


		local HumThatTouched = hit.Parent:FindFirstChild("Humanoid") 
		if HumThatTouched  then
		if hit == Hum then return end
		-- SpawnPartModule.New(Part,10,5,4,5)

return SpawnPart

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

If you want the speed to be consistent, calculate the distance between the spawn point and the target, this can be done as following statement (sorry cant figure out how you’re calculating the target)

dst = (Vector3 - Vector3).Magnitude

(CFrame.Position is a Vector3 of the position of the CFrame)

From there, we can use the formula to get time from speed and distance, d = st, (but refactor it so we get time, not distance), resulting in t = d/s

In summary, you should result in the statement: t = dst / speed, that you can use to get a consistent speed across all your tweens.

Hope this helps!