How would I go about making a Character spin using BodyAngularVelocity. I've tried inserting it into the Humanoid, HumanoidRootPart, Torso, with AngularVelocity (0,5,0) and nothing happens.
This script is when you press D, the HumanoidRootPart spins on the Y axis. But it doesn't spin when I press D. (This is a LocalScript in the Character's Model)
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
--- d
mouse.KeyDown:Connect(function(Key)
if Key == "d" then
script.Parent.HumanoidRootPart.BodyAngularVelocity.AngularVelocity = Vector3.new(0,2,0)
end
end)
mouse.KeyUp:Connect(function(Key)
if Key == "d" then
script.Parent.HumanoidRootPart.BodyAngularVelocity.AngularVelocity = Vector3.new(0,0,0)
end
end)

1 comment
Make sure that the P property is enough to impact the character. P Determines how aggressive of a torque is applied in reaching the goal angular velocity. https://developer.roblox.com/en-us/api-reference/property/BodyAngularVelocity/P