#What is this error message
1 messages · Page 1 of 1 (latest)
show the script
see how it says "attempt to perform arithmetic (add) on nil and number"
this means
that it tried to add nil and number
this means that your leaderstat is nil
uh
wait a sec
there
i asked ai once and it failed horribly and i didnt remove the indicators
the error is on line 35 right?
yes
cash.value
the part where i try to add to cash
do you know anything about scripting or are you just blindly asking ai
ik about scripting i just asked once out of desperation and it failed horribly
so
the method FindFirstChild tries to find an instance and returns nil if it doesn't
cash.Value sends an error msg that "tried to define value with nil" or smth
the error is saying that you are trying to add nil and a number
oh
so cash is nil
also that
so leaderstats doesn't have a child named cash
you are trying to add a value instance to a number
well ik what it is
uh sorry to bother you but uh im running into a problem where (im supposing you could tell this is an m1 script) when i punch a player it instantly kills them when they get up sometimes (it doesnt always happen). can you tell what's wrong?
these are my ragdoll scripts
it's likely something to do with the fact that if you disconnect a humanoid's head it dies
probably because the ragdoll changes the joints
ohh
but i have no idea how to fix that
but why might it only happen on occasion and not every time
cuz roblox is weird