Hello, I'm practicing with for loops and the script work until the while loop is in there. Any answers of what I did wrong?
local part = script.Parent
local db = true
part.Touched:Connect(function(player)
local char = player.Parent
local humanoid = char:FindFirstChild("Humanoid")
if humanoid and db then
db = false
for i, v in pairs(char:GetChildren()) do
if v:IsA("MeshPart") then
local fire = Instance.new("Fire")
fire.Parent = v
while do
humanoid:TakeDamage(10)
end
db = true
end
end
end
end)
