You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Make a ball thrust to mouse pointer position.
-
What is the issue?
Velocity is deprecated. So now what??? -
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?