Why is my Character flinging it self

So my Character Flings it self’s for some reason and What can i do to fix I’m using body Velocity

1 Like

may we see the script? i dont really know of anything except the velocity is in a unexpected direction

I think that seeing the script for this would help us support your game. Thanks!

Humanoid physics man ;(. I have found this usually happens when trying to set the players rotation. Solution? Update the C0 of its motor6d of its basepart instead

local Roll = game.ReplicatedStorage.Combat.Roll
local Debris = game:GetService("Debris")

Roll.OnServerEvent:Connect(function(player, count)
	if count == 1 and player.Character.Knocked.Value == false then
		local anime = player.Character.Humanoid:LoadAnimation(script.Roll)
		anime:Play()
		local bv = Instance.new("BodyVelocity",player.Character.HumanoidRootPart)
		bv.MaxForce = Vector3.new(10000000000000, 0, 10000000000000)
		bv.Velocity = player.Character.HumanoidRootPart.CFrame.LookVector * 50
		Debris:AddItem(bv, 0.5) 
		Roll:FireClient(player)
		wait(0.5)
	elseif count == 2 and player.Character.Knocked.Value == false then
		local anime = player.Character.Humanoid:LoadAnimation(script.side_Roll_Right)
		anime:Play()
		local bv = Instance.new("BodyVelocity",player.Character.HumanoidRootPart)
		bv.MaxForce = Vector3.new(10000000000000, 0, 10000000000000)
		bv.Velocity = player.Character.HumanoidRootPart.CFrame.RightVector * 50
		Debris:AddItem(bv, 0.5)	
		Roll:FireClient(player)
		wait(0.5)
	elseif count == 3 and player.Character.Knocked.Value == false then
		local anime = player.Character.Humanoid:LoadAnimation(script.back)
		anime:Play()
		local bv = Instance.new("BodyVelocity",player.Character.HumanoidRootPart)
		bv.MaxForce = Vector3.new(10000000000000, 0, 10000000000000)
		bv.Velocity = player.Character.HumanoidRootPart.CFrame.LookVector * -50
		Debris:AddItem(bv, 0.5)	
		Roll:FireClient(player)
		wait(0.5)
	elseif count == 4 and player.Character.Knocked.Value == false then
		local anime = player.Character.Humanoid:LoadAnimation(script.side_Roll_Left)
		anime:Play()
		local bv = Instance.new("BodyVelocity",player.Character.HumanoidRootPart)
		bv.MaxForce = Vector3.new(10000000000000, 0, 10000000000000)
		bv.Velocity = player.Character.HumanoidRootPart.CFrame.RightVector * -50
		Debris:AddItem(bv, 0.5)	
		Roll:FireClient(player)
		wait(0.5)
	end
	
	
end)

Setting maxforce that high will fling the character I believe.

1 Like

so if i set the max force lower it may help?
i’ll try it

i kinda wonder if body gyro or some other thing to keep you rotated correctly while you launch the player would work. you would just make sure its facing the same way and stays upright then wait a small time after the player gets launched then remove the gyro, but yes as @KingJoseon has said you probably just have to much force