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

How can you script your animations? [closed]

Asked by 10 years ago

I have made animations now i want to know how do i make them like hot-keys, for example like press E to like dance or whatever. I don't really know how but it would be awesome if one of you guys told me how!!!

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-2
Answered by 10 years ago

Well, ROBLOX has inbuilt Animations like /e dance or /e wave which the character can type in, but are very basic and limited. What you're asking for is technically this:

player = Game.Players.LocalPlayer mouse = player:GetMouse()

function HotKey(key) if key:lower() == "q" then --"q" equals the key that you want pressed. Change if you want --CODE end end mouse.KeyDown:connect(HotKey)

If that answers your question, then good luck on your project. If not, contact me on ROBLOX @LordAn1mus or @ProfessorFTQ

Ad