Body velocity not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    A spindash, similar to the adventure series
  2. What is the issue? Include screenshots / videos if possible!
    well before i switched rigs everything worked, but once i switched this happened john oliver
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i have searched for similar issues and nothing has helped
    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!
    how it works is that it detects when you let go of e, then a value. gets enabled, when that value is enabled it repeatedly sends you forward
--the script that sends you forward when said value is enabled
  local player = game.Players.LocalPlayer
local character = workspace:WaitForChild(player.Name)
local HRP = character:WaitForChild("HumanoidRootPart")
while wait() do
	if script.Parent.Humanoid:GetState() == Enum.HumanoidStateType.Freefall or script.Parent.Humanoid:GetState() == Enum.HumanoidStateType.Jumping then
		
	
	elseif script.Parent.Value.Value == true then
		if script.Parent.count.Value.Value > 2 then
 			HRP.BodyVelocity.Velocity = HRP.CFrame:VectorToWorldSpace(Vector3.new(0, 0, -script.Parent.count.Value.Value - 140))
			else
			HRP.BodyVelocity.Velocity = HRP.CFrame:VectorToWorldSpace(Vector3.new(0, 0, -script.Parent.count.Value.Value - 100))
			end
	end
end
2 Likes

Have you tried putting the character a little bit off of the ground? It looks like in your video that the character is skidding across the ground as it tries to go forward (maybe also try setting friction to 0 on the parts?). Another thing it may be is the mass difference between your sonic character and a normal roblox avatar that would throw off your values.

3 Likes

i changed some of the parts to the sonic model to be massless and it worked! thanks!