#anim help

1 messages · Page 1 of 1 (latest)

open gorge
#

I NEED HELP FAST IM TRYING TO MAKE IT SO THAT WHEN YOU HOLD SPACE AN ANIMATION PLAYS AND WHEN YOU LET GO IT STOPS BUT NOTHING IS WORKING I HAVE NOWHERE TO GO

quick socket
#

user input service input began and input ended

open gorge
#

dont mean to take your time

quick socket
quick socket
#
local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input, gpe)
    if gpe then return end
    if input.KeyCode ~= Enum.KeyCode.Space then return end
    
    -- Holding
end)
UIS.InputEnded:Connect(function(input, gpe)
    if gpe then return end
    if input.KeyCode ~= Enum.KeyCode.Space then return end

    -- Released
end)
#

here's the correct code

open gorge
#

thank you

#

so much

untold furnace
#

For example if your player opens the chat while holding space or anything else turns that key release into a gameprocessed event, it will fail to end the behavior

deep siloBOT
#

studio** You are now Level 7! **studio

deep siloBOT
#

studio** You are now Level 1! **studio

open gorge
wide dock
#

then go learn watch some alvin blox tutorials fam

deep siloBOT
#

studio** You are now Level 14! **studio

wide dock
#

go make the foundation before u start bullding

untold furnace
#

Yep

#

it's like high beginner level stuff though, watch some tutorials and you can resume on your own in a few days

open gorge
#

all i need now is the animation script

open gorge
# untold furnace Yep

im really sorry if im right up your spine right now but im panicking as i need to get this done in 1 hour for release

untold furnace