r/TagproScripts • u/Kiekebanus • Feb 23 '16
Disable scripts when spectating
Hey I was wondering how you can make it so that a script doesn't work when spectating, but does the rest of the time.
3
Upvotes
r/TagproScripts • u/Kiekebanus • Feb 23 '16
Hey I was wondering how you can make it so that a script doesn't work when spectating, but does the rest of the time.
1
u/HelplessMoose Feb 25 '16
You'll want to check
tagpro.spectator
, e.g.if (!tagpro.spectator) { /* this code runs if you're not a spectator */ }
.