#keybinding a blocking animation

1 messages · Page 1 of 1 (latest)

whole runeBOT
#

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

main oyster
#

what is your console output? Is the key press being registered, and it's just the animation not playing?

jagged trout
#

22:09:03.531 Animation is not a valid member of LocalScript "Workspace.greatWuFsWOLFIE.LocalScript" - Client - LocalScript:12
22:09:03.531 Stack Begin - Studio
22:09:03.531 Script 'Workspace.greatWuFsWOLFIE.LocalScript', Line 12 - Studio - LocalScript:12
22:09:03.531 Stack End - Studio
22:09:13.715 :: Adonis :: Loading version 266 Complete; Required by Loader version: 266 - Server

ruby eagle
#

Where is Ur animations located in?

jagged trout
#

the starter player scripts

jagged trout
#

tell me my gng plis!!

muted turret
#

local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Debounce = false
local Cooldown = 1.5

UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then
return
elseif input.KeyCode == Enum.KeyCode.E and not Debounce then
Debounce = true
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = script.Animation
if Animation and Humanoid then
local PlayAnim = Humanoid:LoadAnimation(Animation)
PlayAnim:Play()
else
warn("Animation or Humanoid not found")
end
wait(Cooldown)
Debounce = false
end
end)

jagged trout
#

lemme see

jagged trout
muted turret
#

?

jagged trout
#

it should be

muted turret
#

local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Debounce = false
local Cooldown = 1.5

UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then
return
elseif input.KeyCode == Enum.KeyCode.E and not Debounce then
Debounce = true
local Humanoid = Character:WaitForChild("Humanoid")

    local AnimationId = "rbxassetid://Animation Id" 
    local Animation = Instance.new("Animation")
    Animation.AnimationId = AnimationId

    if Humanoid then
        local PlayAnim = Humanoid:LoadAnimation(Animation)
        PlayAnim:Play()
    else
        warn("Humanoid not found")
    end
    wait(Cooldown)
    Debounce = false
end

end)

#

Here try this and replace the animation id with the actual one

jagged trout
jagged trout
#

INVALID ANIMATION IF

#

1 sec

#

22:29:11.704 Invalid animation id '<error: unknown AssetId protocol>': - Client - LocalScript:20
22:29:11.704 Stack Begin - Studio
22:29:11.704 Script 'Workspace.greatWuFsWOLFIE.LocalScript', Line 20 - Studio - LocalScript:20
22:29:11.704 Stack End - Studio
22:29:21.352 :: Adonis :: Loading version 266 Complete; Required by Loader version: 266 - Server

whole runeBOT
#

studio** You are now Level 2! **studio

jagged trout
#

😭

ruby eagle
#

Try if is typing then return end

jagged trout
#

is that just the animation bein funky?

ruby eagle
#

And then add another if statement

#

And try use waitforchild to get the animation

jagged trout
#

where 😭

ruby eagle
#

Local animation = script:waitforchild("animation")

jagged trout
#

at the top?

ruby eagle
#

Ya if istyping then return end

#

And then add another if statement if input.keycode blah blah blah

#

Use task.wait instead of wait

jagged trout
#

do i replace "animation" with the id or naw?

jagged trout
ruby eagle
#

U say end at the bottom

#

Say it in the top

jagged trout
#

under return

ruby eagle
#

Wait a minute

#

Humanoid:load animation ?

jagged trout
#

where 😭

ruby eagle
#

Did U write this code urself or what ☠️

#

It's not humanoid load animation

#

It's suppose to be animator

ruby eagle
#

Ow ok then

jagged trout
#

yuh

jagged trout
exotic gate
exotic gate