#help please
1 messages · Page 1 of 1 (latest)
can you tell
** You are now Level 6! **
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
It can be cuz of normalizeName
fun
make sure it converts good
or just delete it and test
so uhm i dont know what i did rn
** You are now Level 9! **
send models name
Gangster Footera
are you sure abt its good folder names and etf
yes
review them
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?
it's a modulescript for the admin panel conch (command)
it starts after conch loads in so like after around 2-5 seconds
uh but its run by client or server
i somehow cant send the code i edited
it keeps saying that the message cant be delivered
yeah
nope, just says that it couldnt find the animal even though it is there
the capitalization is good
the spaces are good
etc
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
yep
hmm maybe try to get it same way from other script like just to print it
same things happened in other scripts
i did it like 2 days ago
so i cant replicate them
i forgot
but yeah
local renderFolder = workspace:FindFirstChild("RenderedMovingAnimals") does it have right name
it can yield
idk try
oh
lmao
what is this
add debug print before and after iteration
check if they works
ill try but i could maybe use waitforchild when it finds the model?
u can try that
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
so i added my own and this happened
alr
how is it
aight i fixed it...
how
thanks for the help you provided
thanks, if you have one then you too