#Can Clients fire a function on an animation created in a module

1 messages · Page 1 of 1 (latest)

last marlin
#

so im using a module function to make a client player play an animation, BUT, is there a way for me to fire a function when that animation reaches a marker. Note, im firing the module function from a server script, and it does not return anything

eager notch
#

Just make the function shared and call it from your main local script that initializes everything

last marlin
eager notch
#

local function thisIsMyFunction() <--- local
function thisIsMyNewFunction() <--- shared and can be called from other scripts that require that module script.
Localscript in starterplayerscripts called "Main"
local CalledModuleScript = require(modulescript.Whatever)
Then just call that function here in the script.

timber hawk
#

return the animation from the function

last marlin
timber hawk
#

the entire instance does

#

also u cant fire module functions from client to server

#

without using remote events

#

or remote functions

last marlin
#

yes i am aware of that