Hi, I know that there have been a lot of topics on this, and I have tried a lot of them but none of them seem to work for me. For one, everyone uses bodyvelocity, and I am not the biggest fan of that, and it doesn’t have the effect I want.
So I have a car, and the car gets destroyed. I want the player to get flung out in front of the car as a ragdoll. Does anyone know how to do this?
local players = game:GetService"Players"
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild"Humanoid"
if not humanoid.RootPart then
humanoid:GetPropertyChangedSignal"RootPart":Wait()
end
local root = humanoid.RootPart
task.wait(3)
root.CFrame *= CFrame.Angles(-math.pi/4, 0, 0)
humanoid.Sit = true
local bodyVelocity = Instance.new"BodyVelocity"
bodyVelocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
bodyVelocity.Velocity = Vector3.new(0, 15, -40)
bodyVelocity.Parent = root
task.wait(0.5)
bodyVelocity:Destroy()