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

How Can KeyPress Event Play An Animation?

I Am Going To Do A Keyboard Commands Set. How Should I Do It? The Key Is "R".

1 comment

0

We need code we can't help you without seeing what you have tried or currently have this is not a request site

1 answer

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
	if key == "r" then
		--play animation
	end
end)

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