How to make a ball thrust to mouse pointer position?

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

  1. What do you want to achieve? Make a ball thrust to mouse pointer position.

  2. What is the issue?


    Velocity is deprecated. So now what???

  3. What solutions have you tried so far? Well, none yet, since all of my ideas still ended up being deprecated options.

I know how to make the mouse script, but I just don’t know how to make the ball thrust to the mouse direction. All of the methods I know of are deprecated. What do I use? Velocity obviously is a big no.

Here it is again:

local Tool = script.Parent
local Effects = Tool.Effects
Humanoid = nil
RootPart = nil
Character = nil
debounce = false

local Animation = Tool["Blast Animation"]

Tool.Activated:Connect(function()
	if Tool:FindFirstAncestorOfClass("Model") then
		Character = Tool.Parent
		if Character ~= nil and Character:FindFirstChild("Humanoid") and Character:FindFirstChild("HumanoidRootPart") then
			Humanoid = Character.Humanoid
			RootPart = Character.HumanoidRootPart
			
			local Bomb = Instance.new("Part", workspace)
			Bomb.Shape = Enum.PartType.Ball
			Bomb.Size = Vector3.new(4, 4, 4)
			Bomb.Anchored = false
			Bomb.CanCollide = false
			Bomb.CFrame = RootPart.CFrame+Vector3.new(0, 1, 0)
			Bomb.Velocity -- Deprecated. What would I put here instead?
		end
	end
end)

Please help. Velocity is a no. BodyVelocity is also a no. BodyThrust is also deprecated. What isn’t deprecated? :man_facepalming:

Not everything that’s deprecated doesn’t work. Some deprecated objects still work well such as .Draggable property in GUI elements. BodyVelocity also works well, try using that.

Thanks, that worked and it’s not deprecated.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.