How would I make a loop continue even if it errors?
while wait() do local p = Instance.new(“Part”,workspace) p.CFrame = workspace.tppart.workspace -- say tppart is not there and this line error how do i make the loop continue going? end
while wait() do local success, err = pcall(function() local p = Instance.new(“Part”,workspace) p.CFrame = workspace.tppart.workspace -- say tppart is not there and this line error how do i make the loop continue going? end) end