This script is trying to find out how long the player has been standing on a brick Output:
18:15:14.254 - Workspace.Part.Script:7: attempt to perform arithmetic on global 'howLong' (a nil value)
18:15:14.254 - Stack Begin
18:15:14.255 - Script 'Workspace.Part.Script', Line 7
18:15:14.255 - Stack End
while not script.Parent.Touched do
howLong = 0 --This is how long the player has been on it
print(howLong)
end
while script.Parent.Touched do
howLong = howLong + 1
if howLong == 20 then
print("captured")
wait(1)
end
end

1 comment
Your script doesn't work?