Resource icon

OBS Lua Point-counter 1.0

Just a short thought: This is my first script in lua. So i think there is much potential for optimizing. Especially at the Hotkeysave-function. I create for every keybind an own Hotkey-save-array (i could not find any information about that, so i used this workarround). If someone could do the optimizing, feel free :-D
 
Hi - just wondering if you have any instructions on how to get this to work? I have installed the script onto my OBS for MacOS but then I don't know what else to do to actually show the counter on OBS? I've added hotkeys but when I click them nothing happens! Any help appreciated!!
 
Hi - just wondering if you have any instructions on how to get this to work? I have installed the script onto my OBS for MacOS but then I don't know what else to do to actually show the counter on OBS? I've added hotkeys but when I click them nothing happens! Any help appreciated!!
Hi, did you manage to solve your problem? In my case the problem was solved as follows. Where this PLAYER 1 LABEL is
PLAYER 2 LABEL
You manually enter the name of the text font to be changed. For example, home score in PLAYER 1 LABEL enters the home score name. I hope I was clear. A hug!
 
This script isn't working at all, instructions are totally unclear and I can't understand how to use. Please delete this useless thing.
 
Hello Evildox, and thank you for your simple but efficient script, I was looking for something similar for table tennis so I asked Gemini to make a few changes to also account to how is serving and who wins (according to TT rules, serve changes every 2 points, unless after 11 changes ever point, and who gets to 11 first with 2 points of difference wins) and this seems to be working pretty well. I'm posting it here if someone needs something similar for table tennis (AKA PingPong) ;)
Also a few screenshots of what's needed and the created scene (that BTW can be "projected" on a dedicated window that can be shown in full screen on a monitor;)

#Table Tennis Point Counter
#Ping Pong Score Board

Just rename the attached TT_PointCounter.txt to TT_PointCounter.lua, add to OBS scripts and create and position the text elements on a scene accordingly, and configure hotkeys if needed (there are some tiny wireless keyboards that can help with this)
 

Attachments

  • TT_PointerCount.txt
    TT_PointerCount.txt
    9.3 KB · Views: 4
  • Screenshot 2026-05-28 121525.png
    Screenshot 2026-05-28 121525.png
    65.6 KB · Views: 8
  • Screenshot 2026-05-28 122736.png
    Screenshot 2026-05-28 122736.png
    43.9 KB · Views: 9
  • Screenshot 2026-05-28 122914.png
    Screenshot 2026-05-28 122914.png
    100.7 KB · Views: 9
  • Screenshot 2026-05-28 122936.png
    Screenshot 2026-05-28 122936.png
    54.1 KB · Views: 8
  • Screenshot 2026-05-28 123338.png
    Screenshot 2026-05-28 123338.png
    69.8 KB · Views: 10
Last edited:
Ok, just made a correction to automatic service indication because when reverting points (after giving by mistake point to wrong player) service started to get on the wrong player, now with v1.1 it seems to be ok.
 

Attachments

Back
Top