function intialize ()
opacity = 255
fadeOut = true
end
function Update()
if opacity == 255 then
fadeOut = true
elseif opacity == 0 then
fadeOut = false
end
SKIN:Bang('!SetOption image ImageAlpha ' .. opacity)
if fadeOut == true then
opacity = opacity - 1
else
opacity = opacity + 1
end
end
The function name you want to use is Initialize. Note the capitalization.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
wow, 1 error and the code won't work, i wish a compilator for lua scripts thank you for answer! now it's working, i want to use some simple scripts on a few skins