Hello. I'm creating a script where when a player touches a part, a body thrust is created in their HumanoidRootPart, which propels them in whatever direction they are facing. Here is my script:
script.Parent.Touched:Connect(function(touch)
print(touch.Parent.Name)
if touch.Parent:FindFirstChild("Humanoid") then
print("player found!")
local bodythrust = Instance.new("BodyThrust")
bodythrust.Parent = touch.Parent.HumanoidRootPart
bodythrust.Force = Vector3.new(touch.Parent.HumanoidRootPart.CFrame.LookVector, 0)
end
end)
As you can see, I confuse myself with the look vector part of the script. How would I make the force go in the direction the player is facing?

1 comment
Thank you so much!