#How do i get the values in my module script working in my local script

1 messages · Page 1 of 1 (latest)

pseudo spade
#

How I already fixed the errors in my module scripts

pure hound
verbal coyote
#

bro

#

line 26

#

plr, stateKey, value and duration are not defined

pure hound
pseudo spade
#

but i don't know how to make the players animation stop when they are idle

#

idk how to use it in that way

#

im trying to learn module scripts

pseudo spade
junior vault
#

uhh

#

just require(modulename)

#

thats how you access the functions inside the module

#

it would be like require(Module).SetState

pure hound
serene isle
pseudo spade
#

and they still don't work

serene isle
#

defined as what

pseudo spade
serene isle
#

did you just copy n paste bc im assuming that

serene isle
#

the variables in the modulescript dont exist in the script calling the modulescript

serene isle
pseudo spade
pseudo spade
pseudo spade
#

I just want to get this done bro

pseudo spade
pseudo spade
#

i didn't see an error on the script

#

but what should i make them equal to

pseudo spade
pure hound
#

build ur own module

#

something simple like

local module = {}

function module.add(a, b)
    return a + b
end

return module
#

or take this and add ur own functions like sub, mult, div @pseudo spade

#

and then test it out and try to use them with require(module)

pseudo spade
#

someone from hidden devs

#

told me to make one for this

pseudo spade
#

nothing is working

pseudo spade
#

detect the players movement or when they aren't moving i want certain animations not playing