#cannot return hitbox value
36 messages · Page 1 of 1 (latest)
How is the line outside of the loop supposed to know that you're defining a variable inside the loop?
I'm just going to guess you didn't make this script
First, you insert a parameter into a function that doesn't require any parameters
i solved it
😭 alr
bro im just ass at learning things
It's the whole point of learning
You don't start at a high level if you're learning something new
ill die of boredom before i learn anything probably
but i get your point
fair enough
Why are you using recursion in a while loop 😭
You're literally still doing it
am i?
Remove the Check() function call from the whole loop
When you call a method from within itself
No need to have a sanity check for every one of the players in the hitbox.
also this script can be farther optimized by using the "GetPartBoundsInBox()", or GetPartsInPart() which in my opinion is better for hitboxes.
goodluck tho 🙂
i was told that sucks
i didnt have good luck with it either but maybe i had bad script before cause the whole thing wasnt running
I still dont get why did you table the players who've got hit?
if you're trying to make a diverse script you can take parameters to change the demeanor