#Viewmodel not loading animation

1 messages · Page 1 of 1 (latest)

grizzled tartan
#

The viewmodel is replicated in the client
Only firing animation are played when clicked, nothing else
the it works print means it works (however the ended event on anim never printed mean is not playing), tested animation on viewmodel perfectly fine

blissful surge
#

yo can u show the client script pls in which you use the modules methods

grizzled tartan
#

But only the main framework are created and only uis for left click detection to fire

blissful surge
#

mmmh

#

tbh idk then

abstract crane
grizzled tartan
abstract crane
grizzled tartan
#

including the viewmodel

abstract crane
#

can you show that code

grizzled tartan
grizzled tartan
abstract crane
#

so the issue is that the "ended" print doesn't show up?

grizzled tartan
abstract crane
#

i don't see the runanim function called anywhere

grizzled tartan
abstract crane
#

where

grizzled tartan
#

oh

abstract crane
grizzled tartan
abstract crane
#

where is it called

abstract crane
#

so

#

functions declared with . cannot access instance data

#

meaning self

#

you would have to declare it as function module:runanim(name: string)

#

or function module.runanim(self: type, name: string)

#

and then call it as module:runanim()

#

self would be nil here

#

i don't know why it's not erroring though

grizzled tartan
#

good thing is that I know why my variable is being nil inside "self" now

#

tysm

#

bad thing is well...

#

the animation isn't showing, so it must be a flaw in the animation. But I appreciate you for pointing out the flaw inside my code @abstract crane

abstract crane
#

np

grizzled tartan