Touched event works once, but then it doesn’t work after that.
Script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if script.Parent.Value.Value == 0 then
if game.Players:FindFirstChild(hit.Parent.Name).gangSystem.isInGang.Value == true then
script.Parent.Value.Value = 120
script.Parent.carryOn.Value = false
while true do
wait(1)
if script.Parent.carryOn.Value == false then
script.Parent.Value.Value -= 1
if script.Parent.carryOn.Value == true then
break
end
end
end
end
end
end
end)
script.Parent.TouchEnded:Connect(function(hit)
script.Parent.carryOn.Value = true
end)
Help would be highly appreciated.