Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I cant make a rolling control script! (with parts) how???

Asked by 3 years ago

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

0
wth malachiRashee 24 — 3y
0
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 SteamG00B 1633 — 3y
0
Fourth, unless you've got a custom character or some other function, simply doing angular velocity won't do what you want. SteamG00B 1633 — 3y
0
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 SteamG00B 1633 — 3y
0
i just fixed this snowpototoy 37 — 2y

Answer this question