local npc1 = game.Workspace.OldMan
script.Parent.Touched:Connect(function()
local Animation = Instance.new("Animation",npc1)
Animation.Name = "LookAnim1"
local Anim = require(game.Workspace.AnimationID)
Animation.AnimationId = Anim.LookAfterEntering
local Humanoid = npc1:WaitForChild("Humanoid")
Humanoid:LoadAnimation(Animation)
Animation:Play()
end)
Here is my script, I'm trying to make a touched event that will make an npc do an animation. But the output says "Play is not a valid member of Animation".
I hope somebody can help me, thanks!
