Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can't move a player precisely with velocity?

I'm trying to push the player to a certain location using Velocity, but it's not as precise as I would like. Does anyone know if there is something I can use to push the player but to a certain point discluding friction?

local player = game:GetService('Players').LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char.Humanoid

char.HumanoidRootPart.Velocity = char.HumanoidRootPart.CFrame.rightVector * 50

1 answer

✓ Accepted answer

I was going through this too when I was trying to make a dash. I figured you could create an instance BodyVelocity which will push the player until it reaches the goal you are searching for keeping it even in the air and on land. If this helped you please mark it as answered. :D

-- You can parent the Instance to the HumanoidRootPart

1 comment

0

It doesn't do exactly what I wanted but it is way better than what I was doing ,thank you.

This discussion is preserved as it was. New answers, comments, and votes are closed.