Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can't move a player precisely with velocity?

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

0
It doesn't do exactly what I wanted but it is way better than what I was doing ,thank you. RoButCantBlox 68 — 5y
Ad

Answer this question