Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.