Level indicator help?

Can someone help me with a level indicator? Basically, I just want to set a value of a level indicator. Of course, the followng code doesn’t work:

on awake from nib theObject
set value of level indicator "level_indicator" of window "main" to "6"
end awake from nib

Thanks!