function HUDONOFF()
partHUD = tpt.hud()
--tpt.hud returns current state of HUD(1 on,0 off)
if partHUD == 1 then
--if HUD is on then
deletesparkButton:visible(true)
MeltButton:visible(true)
everythingButton:visible(true)
lifemaxButton:visible(true)
--sets the interface component visible with boolean true
else
deletesparkButton:visible(false)
MeltButton:visible(false)
everythingButton:visible(false)
lifemaxButton:visible(false)
--else the buttons are not visible
end
end
tpt.register_step(HUDONOFF)
i've gotta post more scripts to beat you :P