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

Weapon Animation Help? More info in desc

Asked by 6 years ago
Edited 6 years ago

How do i make the animation i made work with the weapon i made?

I made a sword and was trying to add the animation into it but it's just swinging

How do i fix it to do the animation? And how to i make a weapon appear by pressing a keycode Not in inventory

0
Nobody is going to answer if you're not descriptive enough. Tell us exactly what you want done, any previous attempts, etc. ee0w 458 — 6y
0
Okie markjillian123456789 -7 — 6y

1 answer

Log in to vote
0
Answered by
oftenz 367 Moderation Voter
6 years ago
Edited 6 years ago

EDIT: I'm not totally understanding of your first question so I will answer the second part.

You can detect keycodes with UserInputService

--This was on the wiki. I'm not taking ownership!
function onKeyPress(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.R then --Change R to your keycode

    end
end

game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Ad

Answer this question