I cant do it! Im tring to make a ragdoll control script with my freind!
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
if key == "w" then
script.Parent.roll.AngularVelocity = Vector3.new(0,20,0)
else
script.Parent.roll.AngularVelocity = Vector3.new(0,0,0)
end
end)
local or global tell me

5 comments
wth
There is so much wrong with this. You are missing a lot that you need to know before you can do what you want to do. First, "Connect" has to be capitalized, Second, there is no "W" key on your mouse, Third, you're going to need to assign rolling directions to all WASD directions or just W and mouse to aim it
Fourth, unless you've got a custom character or some other function, simply doing angular velocity won't do what you want.
Out of all of that though, I recommend you first start learning how to process inputs with the user input service: https://developer.roblox.com/en-us/api-reference/class/UserInputService
i just fixed this