Ok thanks man. Any idea as to why this code isn't working. I've looked at other addons and on forums and this seems to be correct but when I load WoW to test it, it says there's an unknown symbol on line 21
Code:
function Frame1_OnEvent()
Frame1:RegisterEvent("CHAT_MSG_ADDON")
Frame1:SetScript("OnEvent", local function(self, event, prefix, text, channel, sender)--line 21
if prefix == "Roll" then
Frame1:Show()
end
end
end )
end