I’ve tried to search for an solution. It still wont work out. I have a Moon animation saved to roblox which is supposed to run on a NPC when you grab a flashlight.
local ghost = {}
ghost.firstAppearence = function(c)
local humanoid = c.Humanoid
local anim = humanoid:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim:Play()
end
return ghost
This is a module in ServerScriptService which would run it. the c is the Character which is referring to the ghost that would walk through this area: