#How can i make this work

1 messages · Page 1 of 1 (latest)

cosmic cape
#

this isn't working and i dont know why.
-# also movekey is just the key you press on a userinputservice.

#

if any more information is needed just tell me.

#

like any of the modules

dusk trail
#

We need a bit more information

#

What exactly doesn't work

#

Is it not getting the correct move?

patent cypress
dusk trail
#

And what exactly is within your move module

patent cypress
#

but yeh more info

dusk trail
#

He can technically do .WaitForChild but he needs to put the self instance in the front

cosmic cape
#

on the function

patent cypress
dusk trail
patent cypress
#

since ur not passing self

dusk trail
cosmic cape
#

this is inside One

dusk trail
#

Does the client pass the correct information?

patent cypress
#

whats the getEcharModule fucntion

cosmic cape
jovial matrixBOT
#

studio** You are now Level 1! **studio

dusk trail
patent cypress
cosmic cape
cosmic cape
cosmic cape
#

correctly

dusk trail
#

On the server, there should be no need to use :WaitForChild() unless you know something will not exist for a period of time

#

Use :FindFirstChild to check if that object exists or not

cosmic cape
#

thanks

#

ill change it

#

still the same error

#

exept now its FindFirstChild insted

dusk trail
#

Do checks like this

#

:FindFirstChild will either return the object you are looking for or nil if it doesn't exist

#

So we check if it exists, if not then we don't do anything

#

Afterwords, we just require the module and get the function

cosmic cape
#

let me try

#

yeah still the same error

dusk trail
#

ECharModule.Moves does not exist

#

Which means your ECharModule doesn't return something correctly

cosmic cape
#

ok

dusk trail
#

print ECharModule

cosmic cape
#

ok

#

it gets the contents of the module

dusk trail
#

Instead of .Moves do .Skills

#

Since that is what it is relating to

cosmic cape
#

yeah but i want to get to the folder

dusk trail
#

Then make the module return the folders

cosmic cape
#

how could i do that?

jovial matrixBOT
#

studio** You are now Level 2! **studio

cosmic cape
#

if you need the module it's up on the chat

dusk trail
cosmic cape
#

yes

dusk trail
# cosmic cape

idrk how your code works that well or where your modules are stored but I would presume you can easily just get the folders from this and return that rather than the CharModule

cosmic cape
#

ok ill try making this change

patent cypress
cosmic cape
#

yeah ok i got it

#

i made GetECharModule just send me the actualy file insted of the module required