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
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.