It may not exist as the script has loaded, and you should instead use :WaitForChild(), optionally with the second parameter timeout
so it doesnt wait for forever in case you’re doing something wrong.
You can’t use .Activated on the server because the server isn’t the one checking for input. All input functions only work client side. You will need to have to use remote events to communicate with the server.
i’m pretty sure there is an exception for .Activated.
(considering this is a server script and its the only error.)
.Activated isn’t fired upon the server starting, and the “crib” is put into the player when they’re loaded in.
print humanoid and see what it gives you
idk what you’re expecting but
it’s just the humanoid of the player you hit with the sword… lol
wait i was looking at the wrong line, are you sure lefta is a thing?
yeah, 100% sure, i can see it in the player under crib.
does the script always error or randomly?
always, im doing a test as i type this to check something.
The issue isn’t with “lefta” but the crib variable. Error means FindFirstChild was used on a nil variable. Which means crib wasn’t found.
btw what is crib and what is it welded to?
omg… this is the most silly mistake i could’ve done…
“crib” isnt inside the character, it’s inside the torso of the character…
And there you have it folks! A scripting error we all make especially after a long day
Btw that would still work if you added true as second parameter of FindFirstChild (makes it recursive).
yup… ive been making stupid particles and gore for my game all day, im loosing it.
FindFirstDescendant() would’ve fixed this from occurring.