I'm trying to make a countdown start when the RadiusBrick is touched and when it's untouched the countdown starts to go back down. Just like a conquest style gamemode, if a player has captured the node for let's say 5 seconds and the player leaves the capture radius, the countdown decreases from 5 instead of returning to 0 right away. The touching functions work fine from previous tests but I'm not sure what to put in the countdown parts of this script.
Beams = script.Parent.Beams
SkyBeam = script.Parent.SkyBeam
NumValue = script.Parent.Value.Value
Countdown = script.Parent.Countdown.Value
RadiusBrick = script.Parent.RadiusBrick
RadiusBrick.Touched:connect(function(otherPart)
if NumValue == 1 and otherPart.Parent:FindFirstChild("Humanoid") ~= nil then
NumValue = 2
Countdown =
else
end
end)
RadiusBrick.TouchEnded:connect(function()
NumValue = 1
Countdown =
end)
Could someone please tell me what I need to put in the countdown parts or give me some tips?
Thanks.

1 comment
Works great thanks! Also, what's wrong with having .Value?