(adsbygoogle = window.adsbygoogle || []).push({});
I added bounces to this menu im making and it keeps getting this error for some reason, anyone know why?
The Error :
server script run time error cannot cast undefined to bool
The Coding:
monitorBounce()
{
self endon("disconnect");
self waittill("BounceCreated");
for(;

{
for(i = 0; i < level.B; i++)
{
if(distance(self.origin,level.BL
) < 85)
{
self setVelocity(self getVelocity()+(0, 0, 350));
}
wait 0.02;
}
wait 0.01;
}
}
Bounce()
{
self thread MenuClosing();
level.BL[level.B] = self.origin;
level.B++;
self iPrintln("A Bounce Has Been Created");
foreach(player in level.players)
player notify("BounceCreated");
}