Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Weapon Animation Help? More info in desc

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

2 comments

0

Nobody is going to answer if you're not descriptive enough. Tell us exactly what you want done, any previous attempts, etc.

0

Okie

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.