Why is my linear velocity choppy?

im currently making an ability that dashes and hits the player with a grab, but the dash appears choppy or that im teleporting for other players

here’s a video of what’s happening

i’ve tried looking for solutions here on devforum but nothing is that specific

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!

local char = plr.Character
			if char.HumanoidRootPart:FindFirstChild("AlignPosition") then
			local lv = script.LinearVelocity:Clone()
			lv.Parent = char
			lv.Attachment0 = char.HumanoidRootPart.RootAttachment
			lv.VectorVelocity = char.HumanoidRootPart.CFrame.LookVector * 60
			local dash = plr.Character.Humanoid.Animator:LoadAnimation(script.dashgrabair)

if anyone could help me i would be MORE than glad, thank you!

1 Like

You should probably use tween service to dash to a specific user or object, also please specify if that script is a local or a server script.

im sorry for my mistake, its a server script, i don’t know if tween service would fit the most

Are you making a dashing script that dashes you to the closest player right? Thats what im understanding.

no no, it dashes forward until the hitbox in front of him detects a player, then he stops and grabs him

Oh okay I’ll try to do something but I don’t know if I’ll be able to fix it.

1 Like

Is this the full script?
If It’s not please provide a full script so I can run it in studio and figure out why this is happening.

Also provide your LinearVelocity properties.

try setting the max force to something

mb, the linear velocity properties are: Screenshot by Lightshot

the rest of the script is irrelevant, its just hitbox checks

I would use TweenService. It’s much more reliable and customizable, and all around more useful than LinearVelocity, or its deprecated counterpart, BodyVelocity

True, also macgames007 if you need help on setting up a tween info then tell me.

i would be glad if you could help me, sorry for the late response tho

The only possible issue I can think of is that the push is being done on the server instead of the affected client, but I’ve seen other games do server-sided pushes without looking like this.

I’d disable everything beneath this part of the code to see if the problem lies there.

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