Reposting from my original thread on wowinterface.

Hello guys! Currently using my own version of Mono's oUF layout. From looking at his other modules, I tried adding a swingtimer myself.

So basically, I have imported the oUF_swings into the embeds folder. After this I went to the lib.lua file, and played around with the code. After looking at the other modules, I made a script through the example from oUF_swing.
This is what I came up with;

lib.gen_Swing = function(f)
local Swing = CreateFrame("Frame", nil, self)
Swing:SetWidth(400)
Swing:SetHeight(20)
Swing:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 200)
Swing.texture = [=[Interface\TargetingFrame\UI-StatusBar]=]
Swing.color = {1, 0, 0, 0.8}
Swing.textureBG = [=[Interface\TargetingFrame\UI-StatusBar]=]
Swing.colorBG = {0, 0, 0, 0.8}
end

Now, can somebody tell me why it doesnt work? Any answers or guidelines would be really appreciated. Basically, no swingtimer is showing up on my screen in or out of combat.