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

roblox error : AnimationID is not a valid member of Animation ?

Asked by 5 years ago

Hi there. I'm trying to follow AlvinBLOX's tutorial on making a gun and keep running into this error : "AnimationID is not a valid member of Animation". Here's the code :

function checkBodyType(player,tool)-- checks whether the body(Torso) is R6 or R15
    if game.Workspace[player.Name]:FindFirstChild("LowerTorso") then 
        tool.shoot.AnimationID = "rbxassetid://1864601083" -- this is where the debugger points
        tool.reload.AnimationID = "rbxassetid://1864630409"
        return "R15"
    end
    if game.Workspace[player.Name]:FindFirstChild("Torso") then 
        tool.shoot.AnimationID = "rbxassetid://1864524552"
        tool.reload.AnimationID = "rbxassetid://1864538685"
        return "R6"
    end 
end 

Any idea what is the cause ? Thanks

2 answers

Log in to vote
0
Answered by
Async_io 908 Moderation Voter
5 years ago

It's AnimationId not AnimationID.

0
thanks :) proclet 7 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago
function checkBodyType(player,tool)
        if game.Workspace[player.Name]:FindFirstChild("LowerTorso") then
            tool.shoot.AnimationId = "rbxassetid://1864601083" 
            tool.reload.AnimationId = "rbxassetid://1864630409"
            return "R15"
        end
        if game.Workspace[player.Name]:FindFirstChild("Torso") then
            tool.shoot.AnimationId = "rbxassetid://1864524552"
            tool.reload.AnimationId = "rbxassetid://1864538685"
            return "R6"
        end
    end

Try This.

Answer this question