#Is there anything wrong with this script?
27 messages · Page 1 of 1 (latest)
Well the error is related to the weapon not firing
Then I can’t tell you what goes wrong when I can only see the script that clones it
Does the weapon actually get destroyed or is it still inside the inventory?
You know the method :Destroy() right?
@slow void check if the cannonball is still inside either the player’s character or the player’s backpack
Add “print(roundshot)” inside the if else
No in a new line
But between line 7 and the first end after it
No just “roundshot”
No you’ve “12 lb roundshot”
Yet it’s declared as “roundshot”
Bingo
What’s the output?
How often did it give you the cannonball?
No how often
🤦‍♂️
How often (so tell me a number) did you receive a cannonball in that test
Try to keep testing until it doesn’t give you a cannonball
** You are now Level 4! **
If you can’t seem to replicate the bug then see if it works without the print
If you do get a time it doesn’t give you it then tell me what it returns that time
You can make a new script if you want to
But if it works then it works
I’ve no clue what your current system fully looks like so I can’t tell you if it’s better or not
I normally do it until I feel confident that it won’t return
Then remove the print and try it out a few times without it