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

PLEASE READ AND HELP ME PLEASE?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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)
0
Hope I help Revenant101 25 — 10y
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 aheadkiller6678 5 — 10y
0
dont put the 1 its only part fo the codeblock xd Revenant101 25 — 10y
Ad

Answer this question