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

Why do I receive "Animate is not a valid member of model" when it actually is?

Asked by 4 years ago

--Here's my code --Yet it outputs saying "Animate is not a valid member of model, startercharacter," even thought it is.

local char = script.Parent

local human = char.Humanoid

local current_animation = nil

local walk = char.Animate.run.RunAnim

local Click = game.Workspace.ApartmentEntrance.Floor1Button

Click.ClickDetector.MouseClick:Connect(function()
wait(3.75)

current_animation = human:LoadAnimation(walk)

current_animation:Play()

human:MoveTo(game.Workspace.WalkWayTwo.Position)

end)

1 answer

Log in to vote
0
Answered by 4 years ago

if ur using a starterchracter the animation wont work like that , the animation should be in ur character scripts so u have to change ur variables a bit and also use a code block it easier for others to read ur code

Ad

Answer this question