How do you make a rush ability? I've been trying to make one for a long time, but something always goes wrong, lol, I normally used something like this:
local hitbox = instance.new("Part", Workspace.Fx) -- fx is a folder
-- configuratios from hitbox like masless, can collide, anchored, etc
local weld = instance.new("WeldConstraint", hitbox)
--same configurations like part0, etc
local force = Instance.new("BodyVelocity", HumanoidRootPart)
-- configurations la max force, vector, etc
hitbox.Touched:Connect(function(hit)
-- here when touches the enemy
end)
task.delay(10, function()
hitbox:Destroy()
force:Destroy()
end)
But every time I tried it, it only worked at short distance, if I did it at long distance, even if I touched the hitbox, it didn't work.