Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

SurfaceGUI and Math Help Again?

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)

local var = 0
repeat
wait(0.1)
script.Parent.Num.SurfaceGui.status.Text = V
until var==10
end
end

Layout: http://gyazo.com/056e12737a10ba98cf8c438dd7d07688

It will only show a 30, I need the script to +1 on the TEXT of the SurfaceGUI each time a player is on the Brick. But, it only shows a 30 (http://gyazo.com/4866a3ba6b77d6e32595561f360d796b)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.