I am building an obby game that has a special boss fight at the end but for some reason the script only works once per server, if another player is to enter the boss fight after someone else, half of the script doesn't work. Also scripts for other parts of the obby stop working, for example simple kill brick scripts.
My script is too big for this website :/
I have but my script on this pastebin instead:
RobloxBossFight - https://pastebin.com/xjwTcLBQ
any tips on how to reduce lag and scripts breaking will be very much appreciated.

2 comments
Isn't it possible to handle the boss locally?
unfortunately not, when i tried that it did nothing and I got tons of errors