V=0
function Touched(Plr)
if game.Players[Plr.Parent.Name]~=nil then
V=V+1
end
function Ended(Plr)
if game.Players[Plr.Parent.Name]~=nil then
V=V-1
end
script.Parent.Touched:connect(Touched)
script.Parent.TouchEnded:connect(Ended)
How do I make it so when it +1 it also adds +1 on a SurfaceGUI text

5 comments
If it doesn't work then at the "..V.." try editing the dots to "..V" or "V.." or "..V. " else give me the error the output says and ill try to fix it
Dude, Im kinda confused, this is how I have it set up: http://gyazo.com/8f0529876a096ef039221d6a973fd46a (Script is where I have your script in)
You con't need "..V.." put simply V.
Listen to ultra for that one and then just put the Script inside the Text Label
It says 30, look http://gyazo.com/ff7db207bd00b7221ec992c84e733d4b