Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- button.timerVolume = timer.performWithDelay(250,
- function()
- if button.currentFrame == 2 then
- volume[button.setting] = math.min(math.max(0, volume[button.setting] + button.value), 100)
- Runtime:dispatchEvent{name = "Options", [button.setting] = {Volume = volume[button.setting] / 100}}
- volume[button.setting .. "Text"].text = volume[button.setting]
- end
- end, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement