Totalpoints = 0
local trigger= vgui.Create ("DFrame");
trigger:RegisterEvent("CHAT_MSG_SAY");
trigger:SetScript("OnEvent",function(self,event,ms g)
if event=="CHAT_MSG_SAY" and msg==".givepoint" then
Totalpoints = Totalpoints + 1
end
end);
Why does this not work?
Current error message:
[ERROR] lua/code.lua:10: attempt to call global 'CreateFrame' (a nil value)
1. unknown - lua/splash.lua:10
- - - Updated - - -
Nevermind close thread Im stupid, i figured it out