
testCleanUp()
{
self.testText = self createFontString("default", 1.
;
self.testText setPoint("CENTER", "CENTER", "CENTER", "CENTER");
self.testText setSafeText("Test");
getHostPlayer() iPrintlnBold("Text set for " + self.name);
self thread cleanOnDisconnect();
self thread cleanOnGameEnded();
}
cleanOnGameEnded()
{
notification = "game_ended";
level waittill(notification);
self thread cleanText(notification);
}
cleanOnDisconnect()
{
notification = "disconnect";
self waittill(notification);
self thread cleanText(notification);
}
cleanText(notification)
{
if(isDefined(self.testText))
{
getHostPlayer() iPrintlnBold("Cleaning (" + notification + ")");
self.testText destroy();
wait 1;
getHostPlayer() iPrintlnBold("Cleaned (" + notification + ")");
}
else
{
getHostPlayer() iPrintlnBold("Not defined");
}
}

testCleanUp()
{
self.testText = self createFontString("default", 1.
;
self.testText setPoint("CENTER", "CENTER", "CENTER", "CENTER");
self.testText setSafeText("Test");
getHostPlayer() iPrintlnBold("Text set for " + self.name);
self thread cleanOnDisconnect();
self thread cleanOnGameEnded();
}
cleanOnGameEnded()
{
notification = "game_ended";
level waittill(notification);
self thread cleanText(notification);
}
cleanOnDisconnect()
{
notification = "disconnect";
self waittill(notification);
self thread cleanText(notification);
}
cleanText(notification)
{
if(isDefined(self.testText))
{
getHostPlayer() iPrintlnBold("Cleaning (" + notification + ")");
self.testText destroy();
wait 1;
getHostPlayer() iPrintlnBold("Cleaned (" + notification + ")");
}
else
{
getHostPlayer() iPrintlnBold("Not defined");
}
}
statements. So make sure when things are toggled off they arent still looping. This is how i've made dynamic v3 and Radiant pretty much "freezeless"
statements. So make sure when things are toggled off they arent still looping. This is how i've made dynamic v3 and Radiant pretty much "freezeless"
self thread cleanOnDisconnect(self.testText);
self thread cleanOnGameEnded(self.testText);
cleanOnGameEnded(hud)
{
level waittill("game_ended");
hud destroy();
}
cleanOnDisconnect(hud)
{
self waittill("disconnect");
hud destroy();
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.