#animation play on thoughing a part

1 messages · Page 1 of 1 (latest)

ornate osprey
#

dit is me code (dont know how to do code block)
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if human then
local anim = human:LoadAnimation(script.Parent.Animation)
anim:Play()
end
end
script.Parent.Touched:connect(onTouched)
en dit is de error how do i fix it

#

guys i fixed the error

#

but the animation is not playing

#

how do i fix it

#

i want it to play on the player itself

dim yew
#

use an animator object

sand stag
#

Man zegt dit is me code