#help please

1 messages · Page 1 of 1 (latest)

wintry cedar
#

So basically even though there's a model by the name of the one I selected it still says "No animal found on conveyor (animal name)", yes, I did use chatgpt once because I didn't know what's happening, but yeah.

vague trellisBOT
#

studio** You are now Level 6! **studio

calm wing
#

what its supposed to do

#

I kinda dont understand it

wintry cedar
#

when the command is used, it's supposed to find a model in a folder called "RenderedMovingAnimals", and if it does it's supposed to set the "Trait" attribute to the argument trait that was chosen by the admin

calm wing
#

fun

#

make sure it converts good

#

or just delete it and test

wintry cedar
#

aight

#

imma test

#

ty

calm wing
#

np

#

tell me if it wont work

wintry cedar
#

so uhm i dont know what i did rn

vague trellisBOT
#

studio** You are now Level 9! **studio

wintry cedar
#

but it still says that it didnt find

#

wtf

#

why cant i send the code

calm wing
#

send models name

wintry cedar
calm wing
#

are you sure abt its good folder names and etf

wintry cedar
calm wing
#

review them

wintry cedar
#

everything is there as it should

#

im starting to think

#

im like not that good at scripting

#

but would it be possible that the code only runs once? the animals probably spawn after the code injects or something?

#

and that's why it keeps saying that?

calm wing
#

is it server sided or client

#

and is this script running at start of the game

wintry cedar
#

it's a modulescript for the admin panel conch (command)

wintry cedar
calm wing
#

uh but its run by client or server

wintry cedar
#

oh

#

one sec

#

by server

calm wing
#

weird

#

hm

wintry cedar
#

i somehow cant send the code i edited

#

it keeps saying that the message cant be delivered

calm wing
#

too big

#

prob

#

u deleted ths normalizeName function yya?

wintry cedar
#

yeah

calm wing
#

and just typed it all correctly

#

it doesnt give you any other error

#

?

wintry cedar
#

nope, just says that it couldnt find the animal even though it is there

#

the capitalization is good

#

the spaces are good

#

etc

calm wing
#

try to add even more debug prints

#

and try to validate model upon replication

#

if its really in if its really named correctly et

#

c

wintry cedar
#

it is

#

i even copy the name from the explorer

calm wing
#

rly no other error in output

#

hm

wintry cedar
#

yep

calm wing
#

hmm maybe try to get it same way from other script like just to print it

wintry cedar
#

same things happened in other scripts

#

i did it like 2 days ago

#

so i cant replicate them

#

i forgot

#

but yeah

calm wing
#

local renderFolder = workspace:FindFirstChild("RenderedMovingAnimals") does it have right name

#

it can yield

wintry cedar
#

yes

#

unless we can try using game:GetService("Workspace")? is that a thing?

calm wing
#

idk try

wintry cedar
#

tried

#

same error

calm wing
#

oh

#

lmao

#

what is this

#

add debug print before and after iteration

#

check if they works

wintry cedar
#

ill try but i could maybe use waitforchild when it finds the model?

calm wing
#

u can try that

wintry cedar
#

im going to crash out in a sec

#

🙏

#

imma try the debug returns now

calm wing
#
            local foundAnimal = nil

            for _, model in pairs(renderFolder:GetChildren()) do
                print(_, model)
                if normalizeName(model.Name) == targetName then
                    print('works?')
                    foundAnimal = model
                    print('set nil to model')
                    break
                end
            end```
#

try that

#

maybe

#

does it print sth

wintry cedar
#

so i added my own and this happened

calm wing
#

how is it

wintry cedar
#

aight i fixed it...

calm wing
#

how

wintry cedar
#

turns out i was just making a fucking letter in the model name

#

my clumsy ass

calm wing
#

i told yo

#

to check it

wintry cedar
#

thanks for the help you provided

calm wing
#

lmao

#

np

#

gl with ur project

wintry cedar
#

thanks, if you have one then you too