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

Hot Key Animation ?

How to make a animation run on hot keys? Here is the script I tried using, it didn't work:

function KeyPressed(Key)
	if Key == b then
		bow = hum:LoadAnimation(script.Parent.Bow)
		bow:Play()
	end
end

function KeyUnpressed(Key)
	if Key == b then
		
	end
end

Thank you for reading.

2 answers

Well I hope that's not the whole script because it neglects to define the variable 'hum', and have a connection statement for either of those events. Also theres no need for the KeyUp event in the first place.

-Goulstem

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