Wouldn't
%obj.playHum = true;
schedule(time,0,"lightsaberHum",%obj);
function lightsaberHum(%player) {
if(%player.playHum) {
serverPlay3D(SaberLoopSound,%player.position);
schedule(time,0,"lightsaberHum",%player)
}
}
work as intended as long as the playHum variable is correctly set to true and to false when equipping and unequipping the tool?