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

PLEASE READ AND HELP ME PLEASE?

okay so after i make the animation in the plugin animation thing an export it to animations how do i script it and put into my game and when scripting it how do u put a hot key for the animation u wanna use like e - to fly i really need help because this my first time i ever tried to script something so can some one please help me cause i dont even know where to start.? :/

1 answer

✓ Accepted answer

To Play the animation you just need to

NAMEOFANIMATION:Play() --To start Animation

To Stop it

NAMEOFANIMATION:Stop()

to use keys are like this

local tool = script.Parent
tool.Selected:connect(function(mouse)
    mouse.KeyDown:connect(function(key)
        if key == "Letter goes here" then
         
        end            
    end)
end)

3 comments

0

Hope I help

0

hey with the NAMEOFANIMATON:Play() and how it say 1 before the script to i pu that in line one or what that part is confusing me a liitle bit

0

dont put the 1 its only part fo the codeblock xd

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